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
- Open Microsoft Edge and go to any page.
- Press Ctrl + Shift + J to open the Console.
- Type
2 + 2and press Enter. The Console shows 4. - Type
console.log("Hello from Windows 10")and press Enter.

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
- Open Notepad and type:
<!DOCTYPE html>
<html><body>
<h1 id="msg"></h1>
<script>
document.getElementById("msg").textContent = "Hello from JavaScript!";
</script>
</body></html>
- Select File > Save as. Set Save as type to All files, name the file
hello.html, and select Save.

- 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.

Matt Jacobs has been working as an IT consultant for small businesses since receiving his Master’s degree in 2003. While he still does some consulting work, his primary focus now is on creating technology support content for SupportYourTech.com.
His work can be found on many websites and focuses on topics such as Microsoft Office, Apple devices, Android devices, Photoshop, and more.