What is VOID Operator - Daily JavaScript Tips #3
The void operator returns undefined value;
In simple words, the void operator specifies a function/expression to be executed without returning value
const userName = () => {
return "John Doe";
}
console.log(userName())
// Output: "John Doe"
con...
h.dhairyashah.dev1 min read