+ 1
JavaScript
How do you run the code in the notepad++. I wrote the code but i canât run it
4 Answers
+ 13
You can actually run your script on Chrome. Not sure if this is what people usually do though.
https://developers.google.com/web/tools/chrome-devtools/console/?utm_source=dcc&utm_medium=redirect&utm_campaign=2016q3#opening_the_console
+ 4
As HTML, CSS and JS are parts of web development, they are rendered by web browsers. No need to install other apps to run your code
+ 3
To run JavaScript code using notepad++ you need to link it to an Html file then run the Html file.
Or maybe enclose the entire code inside <script> tags then try to run it on chrome.
+ 3
Use this template
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<script>
// your Javascript code here
</script>
</body>
</html>
Copy to Notepad++
Add your JavaScript codes.
Save the file as index.html,
Open the html file from any browsers or double click the file to open it on default browser.