Viewing Posts From: learning js

Console Todo List – Arrays

Recently I brought a udemy course for 10£, I’ve been following along and watching the lectures as and when I’ve had time. I’m currently on the Array section and within this section there is a code along to create a simple ‘Todo’ list which logs the output within an array and posts it to the console log.


Array Methods

These are the most commonly used Array methods;

  • Push and Pop – Add/Remove from the end of an array
  • Shift and Unshift – Remove/Add from the start of an array
  • IndexOf – Will find the index of a value within the array
  • Slice – Used to copy parts of an array