6 Ways to Define Integer Literal
We can define integer literal in decimal, hexadecimal, octal or binary.
We can define integer literal in decimal, hexadecimal, octal or binary.
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.
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.
If we use console.log in the for loop, it may produce too many debugging messages to read. It’s a good time to use the console.group to group them under a group.
Besides using console.log to display debugging messages, we can use console.table to display Array of Objects for a better layout.
Not only just showing debugging messages on the console of DevTools, but we can also use CSS to change their style.