Do You Need to Install JavaScript on Windows 10?

No. JavaScript is built into every web browser, including Microsoft Edge on Windows 10, so there’s nothing to install. You can try code right away in Edge’s Console, or save a small web page in Notepad and open it in Edge. You only need to install Node.js if you want to run JavaScript outside a browser. If a site says JavaScript is turned off on a newer PC, see how to enable JavaScript on Windows 11.

Applies to: Windows 10. Checked against Microsoft Learn on September 28, 2026.

Check that JavaScript is turned on

JavaScript is on by default in Microsoft Edge. If websites don’t work, open Settings in Edge, select Cookies and site permissions > JavaScript, and make sure it’s allowed.

Try code in the Console

  1. Open Microsoft Edge and go to any page.
  2. Press Ctrl + Shift + J to open the Console.
  3. Type 2 + 2 and press Enter. The Console shows 4.
  4. Type console.log("Hello from Windows 10") and press Enter.
Microsoft Edge with the DevTools Console open showing 2 + 2 and a console.log message
Open the Console (1), then type JavaScript and press Enter (2).

If you paste code instead of typing it, Edge asks you to type allow pasting first. Only paste code you trust.

Make a test page in Notepad

  1. Open Notepad and type:
<!DOCTYPE html>
<html><body>
<h1 id="msg"></h1>
<script>
document.getElementById("msg").textContent = "Hello from JavaScript!";
</script>
</body></html>
  1. Select File > Save as. Set Save as type to All files, name the file hello.html, and select Save.
Notepad Save As window with the file name hello.html and Save as type set to All files
Set Save as type to All files (1), name the file hello.html (2), then select Save.
  1. Double-click hello.html. It opens in your browser and shows the message.

If the file saves as hello.html.txt, see how to show file extensions in Windows 10 to fix the name. To open it in Edge by default, see how to change the default browser in Windows 10.

When you need Node.js

Node.js runs JavaScript outside the browser, for servers and developer tools. Install it only if a course or project asks for it. Microsoft’s guide Set up Node.js on native Windows walks you through it.

Frequently asked questions

Is JavaScript the same as Java?

No. They’re different languages. Java needs its own install; JavaScript doesn’t.

Do I need a special editor?

No. Notepad works for small files. Bigger projects are easier in a code editor.

If you need to run a Java program instead, see how to open a JAR file on Windows 10.

Web apps are also the easiest way to reach iPhone users from Windows. See can you install Xcode on Windows 10?

If a course asks you to use Python instead, see how to install Python on Windows 10.

Microsoft’s reference is Run JavaScript in the Console. More help is on our Windows Help & Guides page.

Get Our Free Newsletter

How-to guides and tech deals

You may opt out at any time.
Read our Privacy Policy