<script> tag, or you can use the browser’s developer tools to run your programs.
If you use HTML, here is a Hello, world! example to show you how your file should look (I’m skipping some HTML best practices to create a minimal system):
<!doctype html> <html> <head> <script> alert("Hello, world!"); </script> </head> <body> </body> </html>
Save the file with a .html extension and then use the Open File command in your browser to load the page. “Hello, world!” will appear in a box in the browser.
Look for the command prompt
Here is an example:
>> console.log("Hello, world!"); Hello, world! -> undefined
undefined just means that the statement you ran didn’t assign a value to anything.
The Chrome browser’s developer tools work similarly.