Blocks & Scopes question 3

Hi there. I am stuck on question 3 of the blocks and scopes section and I can’t figure out what I’m doing wrong. I know the code has no error but it still won’t let me get past this question.


Question: Inside of the function body of logCitySkyline() , write another variable using let named skyscraper and set it equal to 'Empire State Building' .

My answer:

const city = ‘New York City’

const logCitySkyline = () => {
let skyscrapper = ‘Empire State Building’;

Your help is appreciated!

Hi, you have a typo in ‘skyscraper’. The validation algo is picky with stuff like that.

Thank you!!! I can’t believe I didn’t see that, I’ve been staring at this for an hour. I’ve also retyped it four times so apparently I don’t know how to spell skyscraper hah

1 Like