Hello, world!

The Programiz Workspace

  • The left side of the web app is the code editor

    • This is where the programmer would write/edit their code

  • Run button

    • This is where the programmer would ask the web application to run the program

  • Output section

    • This is where the JavaScript program would output any message that the program is meant to

    • This area is called the console

The JavaScript Code

console.log("Hello, world!");

console.log() is a function in JavaScript used to print messages to the web console.

Itโ€™s a very handy tool for debugging and testing your code.

When you use console.log(), it outputs the specified message or variable value to the console, which you can view in your browserโ€™s developer tools.

Last updated