The script tag

You can add inline Javascript while learning. Ad services and widgets for websites will also use this technique.

<script>
var shoppingList = [
  'milk', 'bananas', 'orange juice', 'waffles', 'toast', 'bacon'
];
var listElement = document.getElementById('list');
console.log(shoppingList);
console.log(listElement);
</script>

results matching ""

    No results matching ""