Рет қаралды 10,730
How to Fix Prompt Not Defined || ReferenceError: prompt is undefined.
It happens because of you run this code in a #nodejs environment(VS Code). Window object is not #defined in this environment. You can try to test you script in any browser (chrome, firefox etc.) console, where you can easily access this code.
#javascript #js #prompt