<!DOCTYPE html>
<html>

  <head>
    <link rel="stylesheet" href="style.css">
    <script src="script.js"></script>
  </head>

  <body>
    <h1>open the JS file for exercises</h1>
  </body>

</html>
// Code goes here

var a = [1,18,4,24,72,100,3,8,99,54,2,16,-20,45,32]
var b = ['x', 'y']
var c = [1,2,3,4,5,6]

//1. add '27' at postion 1
//2. add '34' after last item
//3. concat arrays a and b and store in 'c'
//4. add 'test', at position 5
//5. remove last item
//6. remove first item
//7. console.log the last three items of a
//8. console.log the 2nd to 5th items of a
//9. convert a to a string with a colon (:) separator
//10. console.log the length of a


//11. delete third item (make sure you don't create an undefined element)
//12. swap first and second item
//13. remove the first three items
//14. add items "a","b","c", after position 2
//15. console.log each item of array (use loop)
//16. sort array
//17. reverse sort
//18. reverse the array









/* Styles go here */