Is there any trick to convert string to integer in javascript without using any function and methods?
var s = "5"
console.log(typeof(s)) // out put is string
console.log(typeof(parseInt(s))) // i want out put which is number with out using parseInt() or other functions for optimizing code.
Any help would be appreciated. Thanks in advance.