In this video, you will get a quick overview of Global document object and its useful properties.
In this video, I’ll talk about a basic and popular approach that developers seldom utilise.
Instead of writing,
console.log("Hello World") // Hello World
You can write as below,
const log = (arg) => console.log(arg);
log("Hello World"); // Hello World
- It makes it easier to read.
- You don’t have to write anything long, which is a relief to your fingertips.
- Maintains the cleanliness and slickness of your code.