Study

Unit 6 Review

  •   0%
  •  0     0     0

  • What does appendItem do?
    adds an item to the end of a list
  • a repetitive portion of an algorithm which repeats a specified number of times or until a given condition is met
    iteration
  • insertItem (list, index, item)
    inserts an item into a list at the specified index spot
  • occurs when the ending condition will never evaluate to true
    infinite loop
  • a variable in a function definition. Used as a placeholder for values that will be passed through the function
    Parameter
  • used to return the flow of control to the point where the procedure (also known as a function) was called and to return the value of expression
    Return
  • an individual value in a list that is assigned a unique index
    Element
  • manage complexity in programs by giving a collection of data a name without referencing the specific details of the representation
    data abstration
  • a common method for referencing the elements in a list or string using numbers
    index
  • an ordered collection of elements
    list
  • the process of accessing each item in a list one at a time
    traversal
  • var numList = [10,20,30]; console.log(numList[numList.length-1]
    30
  • removeItem command (list, Index)
    removes an item from the list at the specified index
  • the value passed to the parameter
    Argument