Find the output?

// numeric string used with + gives string type

`1)result = ‘3’ + 2;
console.log(result)

2)result = ‘3’ + true;
console.log(result);

3)result = ‘3’ + undefined;
console.log(result); `

4 Likes

1 - 32, 2 - true, 3 - undefined

2 Likes

first is 32 second is 3true and third is 3undefined

2 Likes

results are 5, 3 string, 3 undefinde

1 Like

outputs are 32,true,undefined

1 Like
  1. 32
  2. 3true
  3. 3undefined
2 Likes

@khssbhagavan1919 ,
The right answer is first is 32 second is 3true and third is 3undefined.

@wprashant51 ,
first is 32 second is 3true and third is 3undefined

@dineshkumar11233 ,
first is 32 second is 3true and third is 3undefined

Thanks Everyone for your participation…

The correct answers are first is 32 second is 3true and third is 3undefined.

1 Like

Results are :32, 3true, 3undefined

1 Like