what is the real implementation principle of some of the new es6 and es7 grammars we usually use? Is it understandably the real implementation of the es5 code that is converted through babel?
what is the real implementation principle of some of the new es6 and es7 grammars we usually use? Is it understandably the real implementation of the es5 code that is converted through babel?
Yes, you can check the translated result here https://babeljs.io/repl/
not most es6 and es7 new grammars require vm support babel only simulates
es5
converted through babel
is a compatible way for browsers that do not support these new grammars for the time being, and the implementation is not unique. If it supports it, it does not need to be converted