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.
Declaring variables
Initialising variables for a user profile
Report a typo
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}`);Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.