Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
JohnAdemoye.html
Oluwaseyi.html
README.md
chinkeki.html

README.md

Project JavaScript E1 Arrays

Topics: 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

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 accepts an array and logs the length of array into console.

Want to get reviewed?

Send Pull Request. Check how to deliver your code: https://codingwithbasir.com/how-to-deliver-projects/

Need help?

Download Learn JavaScript eBook from https://codingwithbasir.com/learn-javascript

You can’t perform that action at this time.