Please enable JavaScript to use CodeHS

Want to receive Question of the Day updates? Subscribe Here

AP CSP Question of the Day Jan. 6, 2025

Reference
  1. Incorrect Correct No Answer was selected Invalid Answer

    This list represents the names of customers in line to purchase a recently released gaming console:

    customers ? [ "Conner", "Missy", "Roy", "David", "Phil", "Adrian", "Jack", "Lawson" ]

    The code snippet updates the list:

    x ? customers[3]
    customers[3] ? customers[5]
    customers[5] ? x

    What does the customers variables store after the above code is executed?