Basic JavaScript - Profile Lookup

I’m totally stupid I’ve never completed a task wiothout help. I can understand the instruction, but I can’t create by myself.

I have two things I want ot make sure here.

① Does [i] refer to each { } in const contacts ?

② Is || interchangable with else ?

I’m frightend of my foolishness…

You are not stupid. This stuff is hard.

  1. You have an array of contacts, yes

  2. no, || is a logical or

I wouldn’t copy the answers. One of them uses short circuiting, and I don’t think that has been introduced yet. It is better to build an answer yourself by asking all the questions you need. Copying answers is a way to max sure you will get stuck copying answers.