Complete the code to print 'Hello' to the console.
console.[1]('Hello');
The console.log method prints messages to the console in JavaScript.
Complete the code to declare a variable named 'count' with value 5.
let [1] = 5;
Variable names go after the keyword. Here, count is the variable name.
Fix the error in the function declaration to correctly define a function named greet.
function [1]() { console.log('Hi'); }
Function names should not include parentheses in the declaration. Just use the name greet.
Fill both blanks to create a for loop that counts from 0 to 4.
for (let i = [1]; i [2] 5; i++) { console.log(i); }
The loop starts at 0 and runs while i is less than 5, counting 0 to 4.
Fill all three blanks to create an if statement that checks if x is greater than 10 and prints 'Big'.
if ([1] [2] [3]) { console.log('Big'); }
The condition checks if variable x is greater than 10 using the > operator.
