Initialising variables for a user profile

Report a typo

Consider a scenario where you create a small multi-line JavaScript program about a user's profile. You must declare and initialize three variables that represent the user's name, age, and marital status. Then, use these variables in a message to display the user's information. Your task is to fill in the blanks in the provided code to correctly declare these variables and format the message.

Fill in the gaps with the relevant elements
 userAge = 30;
let userName = "John";
let userIsMarried = ;

(`User's name is ${userName}, age is ${userAge} and marital status is ${userIsMarried}`);
falseconsole.loglet

Create a free account to access the full topic