30

I am learning JavaScript. I am using online editor Jsbin to run javascript. I want to use ES6 with Babel. I have seen some of the tutorials or JSBins which has babel tab in the editor. Please refer the screenshot for more detail. I am not able to figure out how do we get this ES6/Babel tab in JSbin. Can anyone please help me on this? Thanks.

Screenshot

Mr_Green
  • 40,727
  • 45
  • 159
  • 271
Hitesh Kumar
  • 3,508
  • 7
  • 40
  • 71

1 Answers1

56

In the Javascript pane, click the "Javascript" dropdown in the top left and change to "ES6/Babel":

Screenshot

GregL
  • 37,147
  • 8
  • 62
  • 67
  • In the account preferences ("Default Preferences"->"Linting"->"JSHint") set appropriate value for "esversion" property. – A.Andruhovski Dec 11 '19 at 13:42