25th Jun 2020, 3:38 PM
Michael
5 Answers
0
document.getElementById ("noun1").value * 1; That part is wrong, you can't multiply a string by a number Do you want to clear the console or the input?
25th Jun 2020, 4:09 PM
Emanuel Maliaño
Emanuel Maliaño - avatar
0
I want to turn the string to a number. That's why i multiplied by 1. I want to clear the console
25th Jun 2020, 4:12 PM
Michael
0
I use the Parseint () and the output was 15 also I use the same code but on my computer and it works well
25th Jun 2020, 4:31 PM
Emanuel Maliaño
Emanuel Maliaño - avatar
0
Where - you mean here on the Playground?
25th Jun 2020, 5:56 PM
JaScript
JaScript - avatar
0
Yes, Emanuel Maliaño. On the playground
25th Jun 2020, 6:01 PM
Michael