+ 1

classes in Javascript. Why code playgrownd doest allow them?

I wanted to run a code that uses a class but SoloLearn compiler doesnt seem to recognize it. It works fine on a browser but not in here :( btw, Js course doesnt mention classes, im not sure if it means something....

6th Oct 2017, 9:40 AM
Diego de la Fuente Curaqueo
Diego de la Fuente Curaqueo - avatar
2 Answers
+ 3
My Code Playground able to run JavaScript classes without any issue. https://code.sololearn.com/W8mO2dbGyH2h/?ref=app Classes only for ES6. Make sure your phone browser could run ES6 code.
6th Oct 2017, 10:27 AM
CalviŐ˛
CalviŐ˛ - avatar
+ 3
thanks Calvin. Your code doest work for me, so i guess you're right, its because of my device :/
6th Oct 2017, 3:46 PM
Diego de la Fuente Curaqueo
Diego de la Fuente Curaqueo - avatar