Using Primitive Wrapper Object to Wrap Number
In addition to using Primitive for Number, we can use Primitive Wrapper Object to wrap Number.
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.
If we use console.log to display the DOM element, we will get pure HTML only. What we have to do is using console.dir to get the property of the DOM element.
If we care about the performance of some code snippets, we can use console.time to measure the performance.