“Babel CDN” Kode Jawaban

Babel CDN

<div id="output"></div>
<!-- Load Babel -->
<!-- v6 <script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script> -->
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<!-- Your custom script here -->
<script type="text/babel">
const getMessage = () => "Hello World";
document.getElementById('output').innerHTML = getMessage();
</script>
Copy
BlackFlag_baby

Babel CDN

<div id="output"></div>
<!-- Load Babel -->
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<!-- Your custom script here -->
<script type="text/babel">
  const getMessage = () => "Hello World";
  document.getElementById("output").innerHTML = getMessage();
</script>

Copy

Jawaban yang mirip dengan “Babel CDN”

Pertanyaan yang mirip dengan “Babel CDN”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya