Is JavaScript a language? Explain it
JavaScript supports much of the structured programming syntax from C (e.g. if statements, while loops,switch statements, etc.). One partial exception is scoping : C-style block-level scoping is not supported (instead, JavaScript has function-level scoping). JavaScript 1.7, however, supports block-level scoping with the let keyword, like C, JavaScript makes a distinction between expressions and statements. One syntactic difference from C is automatic semicolon insertion, in which the semicolons that terminate statements can be omitted.
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment