+ 1

Why is this code not adding but doing string concatation in the plus method

https://code.sololearn.com/WS3knFmrkmY3/?ref=app

1st Oct 2019, 12:55 PM
Julius Waweru
3 Respuestas
0
// First you recept string, convert the value for number var point1 = +prompt("Enter first point"); // Convert value to Number with Plus var point2 = +prompt("Enter second point"); // Convert value to Number with Plus // Second, indent your code and make sure you use all the variables. // The variable "numbers" is not use.
1st Oct 2019, 2:26 PM
Jônatas Araripe
Jônatas Araripe - avatar
1st Oct 2019, 2:38 PM
Jônatas Araripe
Jônatas Araripe - avatar
1st Oct 2019, 3:21 PM
Julius Waweru