SyntaxFix
Write A Post
Hire A Developer
Questions
You can return a number by using this trick: not recommended
[a] + b - 0
Example :
let output = [5] + 6 - 0; console.log(output); // 56 console.log(typeof output); // number