Today, over 97% of all websites use JS as their client-side programming language and it is arguably the most popular programming language in existence. Since becoming an EMCA standard in 1997, there have been numerous improvements and updates to the language; including many built-in features and methods. While developers may be familiar with the commonly used ones such as
.sort(), and the increment/decrement (
--) operators, there is a plethora of these features that can contribute to code optimization.
Here are a few that every developer should know.
The comma operator (
,) evaluates its operands from left to right and returns the value of the last operand. It allows the creation of a compound expression in which multiple expressions are evaluated, with the final value being the value of the rightmost of its member expressions. The comma operator is commonly used to provide multiple parameters to a
What is PHP: - Who invented PHP, how it works, answers to all such questions about PHP, and much other information, you are going to