var value = "7"; console.log(typeof value); //string console.log(typeof +value); //number console.log(typeof Number(value));//number