How to solve this bug (JS) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
2 Answers
+ 3
I'm not getting the error shown in image but try enabling strict mode as said in error message. Just place "use strict" string at top of your script : "use strict"; class Rectangle { ......
17th May 2020, 7:36 AM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar
- 1
The output is 5 What do you want output to be?
17th May 2020, 7:37 AM
ycsvenom
ycsvenom - avatar