Tell us what’s happening:
My code is
let ‘Character’=‘Hello’
but it isn’t correct.
Your code so far
Step 3
JavaScript has seven primitive data types, with String
being one of them. In JavaScript, a string represents a sequence of characters and can be enclosed in either single ('
) or double ("
) quotes.
Note that strings are immutable, which means once they are created, they cannot be changed. The variable can still be reassigned another value.
Change your "Hello"
string to use single quotes. My problem is: Sorry, your code does not pass. Don’t give up.
You should still declare a character variable. // running tests You should still declare a character
variable. Your character
variable should still have the string "Hello"
for its value. // tests completed
// User Editable Region
let 'Character'='Hello'
// User Editable Region
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36 OPR/110.0.0.0
Challenge Information:
Learn Introductory JavaScript by Building a Pyramid Generator - Step 3