TELECOMMUNICATIONS SYSTEMS
NETWORK ARCHITECTURE
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
A new line
|
|
A colon
|
|
A semi-colon
|
|
A curly bracket
|
Detailed explanation-1: -In PHP, statements are terminated by a semicolon (; ) like C or Perl. The closing tag of a block of PHP code automatically implies a semicolon, there is no need to have a semicolon terminating the last line of a PHP block.
Detailed explanation-2: -In languages of the C-family, the semicolon denotes the end of a statement. Unlike other C-like languages, JavaScript doesn’t enforce that. Instead, the semicolon is optional, and the interpreter adds missing semicolons-mostly at the end of a line-to terminate statements.
Detailed explanation-3: -The official guidelines say that JS uses a semi colon to terminate a statement.
Detailed explanation-4: -Semicolons are not required for JavaScript programming, nevertheless I advice you to use it. It makes your code more readable and is actually a good practice, and almost all cool programming languages uses it. Take a stand and use it, it’s up to you now!