Code and Preformatted Text

Use the console.log() function to print output.

Press Ctrl+S to save the file.

The variable x represents the unknown value.

The output shows: Hello, World!

Preformatted Code Block

function hello() {
    console.log("Hello, World!");
}

hello();
    

HTML Code Example

<p>This is a paragraph.</p>
<h1>This is a heading.</h1>