Complete the code to print 'Hello, world!' in the browser console.
console.[1]('Hello, world!');
Use console.log to print messages to the browser console.
Complete the code to declare a variable named 'count' with value 5 and log it.
let count = [1];
console.log(count);Use the number 5 without quotes to assign a numeric value.
Fix the error in the code to correctly log the sum of 3 and 4.
console.log(3 [1] 4);
The plus sign + adds two numbers together.
Fill both blanks to create an array of numbers and log its length.
const numbers = [[1]]; console.log(numbers[2]);
Arrays are created with comma-separated values inside brackets. Use .length to get the number of items.
Fill all three blanks to create an object with a name property and log the name.
const person = { [1]: [2] };
console.log(person.[3]);Create an object with a property name set to 'Alice'. Access it with person.name.
