DEV Community

Cover image for JavaScript Language Characteristics
Mcode
Mcode

Posted on

JavaScript Language Characteristics

When studying a new programming language it is important to detail its major characteristics, such as how code is executed, white space is interpreted, statements indicated, and so on.

  1. JavaScript Execution Order
    JavaScript code placed inside HTML documents is interpreted line by line as it is found in the page. This means that it is a good idea to put function definitions and variable declarations in the document head, enclosed by the <head> ... </head> tags, if they will be used throughout the page.

  2. JavaScript Case Sensitivity
    JavaScript is a case-sensitive language. This means that language keywords, variables, function names, and other identifiers must always be typed with a consistent capitalization of letters. The while keyword, for example, must be typed “while,” not “While” or “WHILE.” Similarly, online, Online, OnLine, and ONLINE are four distinct variable names.

  3. JavaScript White Space
    JavaScript ignores spaces that appear between tokens in programs. White space characters are those characters that take up space on the screen without any visible representation.

  4. JavaScript Line Breaks -> read more at https://www.tikmint.com/2023/01/javascript-lexical-structure.html

  5. JavaScript Format Control Characters -> read more at https://www.tikmint.com/2023/01/javascript-lexical-structure.html

  6. .........

  7. .........

  8. ........ visit -> read more at https://www.tikmint.com/2023/01/javascript-lexical-structure.html

Top comments (0)