Codington
0 of 8 problems solved • 0%
Use in a course

Exercise prompt

Recognize an Out-of-Range Index

Reading an index that does not exist produces undefined.

Example

const names = ["Ava"]; console.log(names[3]); // undefined

Your task

Predict scores[5], then add an Actual: line that reads it. Both lines should show undefined.