Learn

The page that you viewed in the last exercise is part of the website for a tool called Babel. Babel is a popular transpiler for JavaScript that can be integrated into your projects!

On the right, we have a sample project with Babel already configured. Let’s see what Babel can do for us in a development environment.

Instructions

1.

We have set up Babel for you!

In the terminal, do npm run build.

2.

Use the file explorer to open out/Dog.js and see the resulting transpiled code.

Click “Run” when you’ve had a look.

Take this course for free

By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.
Already have an account?