Multiple choice technology programming languages

Javascript does not distinguish between name of a function and a variable

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

JavaScript functions are first-class objects and their names are identifiers within the same scope. Declaring a function and variable with the same name causes a namespace collision where one overrides the other. Because JavaScript does not separate these namespaces, it does not distinguish between them.