calculator | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

calculator

Hello, I made my calculator, but he doesnt work. Please help. Here is my code https://code.sololearn.com/W5ahFFOvhiED/#js.

3rd Jun 2018, 10:39 AM
bob
1 Answer
+ 1
this.getAttribute(data-op) must be this.getAttribute("data-op") Just put 'data-op' in line 13 in parentheses.
3rd Jun 2018, 11:10 AM
luk.faber
luk.faber - avatar