Complete the code to print 'Hello, world!' to the console.
console.[1]('Hello, world!');
In JavaScript, console.log() is used to print messages to the console.
Complete the code to declare a variable named greeting with the value 'Hello'.
let [1] = 'Hello';
The variable name should be greeting as specified.
Fix the error in the code to correctly display the sum of 5 and 3.
console.log(5 [1] 3);
The plus sign + adds two numbers together in JavaScript.
Fill both blanks to create a function named greet that prints 'Hi!' when called.
function [1]() { console.[2]('Hi!'); }
The function name should be greet and console.log prints the message.
Fill both blanks to create an arrow function named sayHello that returns 'Hello!'.
const [1] = () => { [2] 'Hello!'; };
The arrow function is named sayHello, uses return to send back the string, and no extra symbols after the string.
