Need help with understanding the logic

hey there,
i just don’t quiet get hot java script logic works, i cant think of new ways cuz i just dont understand how anything would work.

any help or tips from you guys?

Probably need to be a little more specific with your question. What specifically do you have problems understanding about it? Do you have an example of something you’re stuck on?