+ 1
Why is this code not adding but doing string concatation in the plus method
3 Answers
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.
0
// See my code
https://code.sololearn.com/WS3knFmrkmY3/?ref=app#html
0
Jônatas Araripe thanks