[javascript]
// JavaScript code example
alert("Hello, World!");

Explanation: The above code is a simple JavaScript code snippet that displays an alert box with the message “Hello, World!”. The alert() function is a built-in JavaScript function that allows you to display a message in a pop-up box.

References: