Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

kushh8's avatar

Type conversion confusion

Case 1:console.log(3 + "3");output for this is 33 Case 2:console.log(3 + + "3"); and out for this 6...in this case the unary operator is converting string into number Then in first case the same thing should happened as in 2nd case right?...but it's returning 33 of type string why https://9apps.ooo/ ? I understood case 2 but have confusion with case 1

0 likes
1 reply

Please or to participate in this conversation.