anyways…
thats such a nonsense.
one time it worked as intended
and now… not… never… i dont understand why.
iam using firefox, the newest.
i also have this error:
Error: NetworkError when attempting to fetch resource.
moz-extension://f454f459-eac0-4304-8c8a-c54c5321e64b/content/js/purify.min.js
purify.min.js.map
not sure if thats related.
also for some reason live server doesn’t always loads the code to the browser.
LORD!
found the solution : D
its the second debugger word, its outside the scope, making the condition scope not work.
I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
I’m not really sure if I understand what this is trying to do. If your goal is to see if there are two common elements in the arrays (in other words, there intersection is two or more) then this seems to work for me. I have a pen here.
Yeah, that makes sense. That’s reason #37 why it is good to get in the habit of writing code in a neat and orderly fashion. In the long run it just saves you so much time and hassle.
I assume @kevinSmith is talking about your lack of proper code formatting.
I would highly suggest following normal code formatting conventions and using a code formatter like Prettier (most online editors have an auto-format as well).
That is impossible to answer without seeing the code, but it’s likely caused by some error in the code, like syntax errors, etc.
Yeah, what lasjorg said. And if you’re developing locally, setting up a good linter and prettier will just get you in the habit. It drives you crazy at first but eventually just becomes habit.