Stuck in ex8 .babelrc second task


#1

Open the .babelrc file and add an object that specifies the preset to “env”.
Run the code once you’ve added the object.

I am stuck with it and when trying to get the code so I can keep on the browser hang and no results come out, help please what should i do??

here is the ex link
https://www.codecademy.com/en/courses/learn-javascript-transpilation/lessons/browser-compatibility-and-transpilation/exercises/babelrc?course_redirect=introduction-to-javascript


#2

You have an icon folder next to the main.js tab. It looks like the image below:

Click on it to reveal the file structure. You will see the .babelrc file.

Click once on the .babelrc file. It will open in the tab next to main.js. Click the expand button to view it on full-screen.

Now, simply add the preset on line 1 of the file. The preset is: {“presets”: [“env”]}
You can copy and paste this preset.

Then press “Run”. You should now be able to pass this exercise.

Hope this helps. :slight_smile:


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.