Javascript Number Type Question 1

Introduction

What is the output of the following code?


let a = parseInt( "34243.32" );
let b = parseFloat( "435.34" );
console.log( a); //  w  ww .  j  a v a2  s  .  c om
console.log( b); 

let c = Number("3323");
let d = new Number("3323");
console.log( typeof d ); 
console.log( typeof e ); 


34243
435.34
object
undefined



PreviousNext

Related