Skip to content

Latest commit

 

History

History

project-javascript-f1-arrays

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Project JavaScript F1 Shoes Shop

  • Create an Array
  • Accessing Elements
  • Update Elements
  • Arrays with let and const
  • The .length property
  • The .push() Method
  • The .pop() Method
  • More Array Methods
  • Arrays and Functions
  • Nested Arrays
  • Review Arrays

If you are not familier with them please download Learn JavaScript eBook at https://codingwithbasir.com/learn-javascript

Project Title: Shoes Shop

  1. Create a html file with your name like john.html
  2. Add current code to that file:
<!DOCTYPE html>
<html>
  <body>
    <script>
      // your code here
    </script>
  </body>
</html>
  1. Define an array named shoes and put these items into it:
  • Casual Shoes
  • Sneakers
  • Sandals
  • Boat shoes
  • Dress Shoes
  1. Log first item and last item into console. For last item use length property.

  2. Change last item of array to Derby Shoes and log last item into console.

  3. Add Espadrilles to the array and log last item into console.

  4. Remove last 3 item of array and log last item into console.

  5. Create a function named showLength that accept an array and log the length of array into console.