freeCodeCamp/guide/spanish/miscellaneous/write-and-run-es6-code-in-t.../index.md

914 B

title localeTitle
Write and Run Es6 Code in the Browser Escribir y ejecutar código Es6 en el navegador

Incluya el siguiente código en la página.

<!-- Write these first. Here `bootstrap.js` doesn't mean Twitter Bootstrap. --> 
 <script src="https://google.github.io/traceur-compiler/bin/traceur.js"></script> 
 <script src="https://google.github.io/traceur-compiler/src/bootstrap.js"></script> 
 
 <!-- Edit the src. Write `type="module"` (important) for linked script --> 
 <script src="app.js" type="module"></script> 
 
 <!-- Remember to write `type="module"` for embedded script --> 
 <script type="module"> 
    //→ write your script here 
 </script> 

Ver: Traceur Compiler Getting Started

Demo: ES6 Demo Repo Source