4 Ways to Convert from String to Number
We can convert from String to Number by Number, parseInt, + or ~~ operator.
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.
If we want to add invisible properties to the Object, we can use Symbol Property to make properties invisible.
If we want to add invisible methods to the Object, we can use Symbol Method to make methods invisible.
WebStorm doesn’t support Nunjucks by default, and we have to add the Twig plugin manually to integrate Numjucks with WebStorm.
console.log、console.warn and console.error can display debugging messages on the console, but console.error is suitable for displaying runtime error.
Although we can fully customize console.log with CSS inline style, console.warn provides a simple way to make debugging messages a little different from console.log.