+ 1
What am I doing wrong
3 Answers
+ 2
1) In the JavaScript: line 2, you needed an = sign.
2) when you did the + âconvert(this.value)â the single quotes were removed.
Working Code: https://code.sololearn.com/W2vwUt5ASM6z/?ref=app
+ 1
Hi,
You have to use an assignment operator in your js code line number 2.
Another solution is you can directly call a function on button click and you can put a code of alert in that function. Following is the example code of 2nd solution.
https://code.sololearn.com/W4djZQtKxGat/#html
0
Thanks for all the advice and the lesson you all gave me