Как исправить? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Как исправить?

//English var x = "5" + "5" document.write(x) //Output: "55". //Error. Help: Output: "10". Help PLEASE!!! ////////////////////////////////////////////////////////////////////////////////////////////// //Русский: var summa = "2" + "2" document.write(summa) //Написано: "22". //А должно быть "4". Как исправить? Помогите ПОЖАЛУЙСТА!!!!!

7th Jul 2020, 2:51 PM
Kozlov Georgiy
Kozlov Georgiy - avatar
3 Answers
+ 2
let x = "5"+"5"; document.write(parseInt(x))
7th Jul 2020, 4:06 PM
🇮🇳Vivek🇮🇳
🇮🇳Vivek🇮🇳 - avatar
0
Similar question.. Hope you can get the answer from this... https://www.sololearn.com/Discuss/2377555/?ref=app
7th Jul 2020, 2:55 PM
Jayakrishna 🇮🇳
0
Спасибо!
7th Jul 2020, 4:55 PM
Kozlov Georgiy
Kozlov Georgiy - avatar