What's the difference bw "34" and 34 | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 1

What's the difference bw "34" and 34

29th Jul 2017, 6:14 PM
Abhinav Anand
Abhinav Anand - avatar
3 Respostas
+ 4
"34" + 2 = error, since you can add a string and int together, you probably meant "34" + "2" = "342"
29th Jul 2017, 7:05 PM
Maya
Maya - avatar
+ 1
"34" is a string and 34 is an int. "34" + 2 = 342 While 34 + 2 = 36
29th Jul 2017, 6:16 PM
Ī‘Ī·Ļ„ĪæĪ¹Ļ€e
Ī‘Ī·Ļ„ĪæĪ¹Ļ€e - avatar
0
"34" is the string 34 is the integer
1st Aug 2017, 9:14 PM
scottwhitfield
scottwhitfield - avatar