In this link https://www.codecademy.com/courses/introduction-to-javascript/lessons/scope/exercises/block-scope-iii
during the second question I was having trouble because it asked me to write a function named logCitySkyline so I did the code:
function (logCitySkyline) {
}
and that didn’t work so I tried just:
function logCitySkyline {
}
and that also didn’t work can anyone tell me why thanks!
2 Likes
Hi, function syntax is usually something like this:
function functionName(parameter){
}
2 Likes
Maybe the lesson is looking for a function made with arrow syntax:
const someFunction = (parameter) => {
}
This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.