What does the length check prove first? Goal: First confirm both strings have the same length before deeper comparison.
Read a small string example without memorizing the problem.
Compare what changes for the first string versus the second string.
1// Goal: First confirm both strings have the same length before deeper comparison.2function starterExample() {3const left = "listen";4const right = "silent";5return left.length === right.length;6}
What does the length check prove first?