javascript using / code example
Example 1: how to use javascript in html
<!-- include an external javascript document -->
<script src="myJavaScript.js" charset="utf-8"></script>
<!-- JavaScript inside html element -->
<script>
console.log("This is JavaScript");
</script>
Example 2: js examples
To create a new primitive symbol, you write Symbol() with an optional string as its description:
Examples:
let sym1 = Symbol()
let sym2 = Symbol('foo')
let sym3 = Symbol('foo')