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.
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.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.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.JavaScript Line Breaks -> read more at https://www.tikmint.com/2023/01/javascript-lexical-structure.html
JavaScript Format Control Characters -> read more at https://www.tikmint.com/2023/01/javascript-lexical-structure.html
.........
.........
........ visit -> read more at https://www.tikmint.com/2023/01/javascript-lexical-structure.html
Top comments (0)