Files
freeCodeCamp/guide/russian/miscellaneous/write-and-run-es6-code-in-the-browser/index.md
2018-10-16 21:32:40 +05:30

1.1 KiB

title, localeTitle
title localeTitle
Write and Run Es6 Code in the Browser Запись и запуск кода Es6 в браузере

Включите следующий код на странице.

<!-- 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> 

См. Начало работы компилятора Traceur

Демо- версия : демонстрационный источник ES6 Demo