Every programming language starts with the same step: printing text. In JavaScript you do this with console.log().
console.log("This is my first line of output")
What happens here?
console is a built-in object for output.log() is the function that prints text"..." or '...'You can also print multiple values separated by a comma:
console.log("Name:", "Alice")
// Output: Name: Alice
Set the greeting variable to "Hello, World!" — exactly that text, with an exclamation mark. The console.log line will then print it.
Click "Run" to execute your code.