I can’t understand why this code doesn’t work on codepen.io. When setting the compiled code everything works as here. you can Also see the working version here
Try setting the JavaScript Preprocessor to Babel (Settings > JavaScript > JavaScript Preprocessor > Babel)
1 Like
Helped!!! Thank you very much!