Skip to content
Advertisement

How to convert common js to ES6 modules?

I know that there are many solutions to convert es6 to js. but when I was searching, I didn’t find any solution converting js to es6! in my case I really need to convert this code to es6:

JavaScript

Advertisement

Answer

I’m not familiar with m3o, but my ES6 translation of what you posted would be:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement