Using default to Provide the Default Value
We can use default to provide the default value of the template variable instead of using if else.
We can use default to provide the default value of the template variable instead of using if else.
Except for px, em and rem are popular units for font size.
If we use <iframe> with other page in different domains. we can use CustomEvent or postMessage to communicate between each other.
As for extracting Floating-point Number to finite digit, we can use parseInt or toFixed.
We can convert from Number to String by String, toString, Type Coercion or Template String.
We can convert from String to Number by Number, parseInt, + or ~~ operator.
We often use Number Literal in Practical, not Wrapper Object of Number. We can call instance method directly on Number Literal. But why?
In addition to using Primitive for Number, we can use Primitive Wrapper Object to wrap Number.
We can define integer literal in decimal, hexadecimal, octal or binary.
WebStorm provides many templates. If default templates are not suitable for us, we can modify them directly.