Merhawi’s Profile Types
JavaScript
10 pts
Merhawi’s Profile Types
Create five variables for Merhawi’s profile:
player— the text"Merhawi"age— the number15likesFootball—trueemail—null(he has no email yet)nickname— declared withletbut no value
Then print the typeof of each variable, one per line, in this order. Expected output:
string number boolean object undefined
Checklist
- Create
playerandagewith the right types. - Create
likesFootballandemail. - Declare
nicknamewithout a value. - Print the five types with
typeof. - The output matches exactly.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
