Hey, did anyone else notice the typo in the function name? It's `Setcurrent URL ()` instead of `setCurrentUrl()`. No wonder this code is giving us headaches!
I'm just gonna close my eyes and point to an answer. Hey, what do you know? I landed on option C. Global scope, but still throws an error. Must be a bug in the code or something.
Woah, hold up! What if the `setCurrentUrl()` function is actually setting the `url` variable to `window.location.href`, which could be different from the global `url` variable? In that case, option D might be the correct answer.
Hmm, this looks like a classic scope issue. I'm guessing the variable `url` is declared outside the `setCurrentUrl()` function, so it should have global scope. Let's see what the rest of the candidates think.
Lavonne
2 days agoRaina
15 days agoFelicia
5 months agoJosefa
3 months agoMarva
3 months agoEdelmira
4 months agoFelix
4 months agoBok
5 months agoAlline
4 months agoRyan
4 months agoJanessa
4 months agoCassandra
5 months agoAngelo
4 months agoTeddy
4 months agoTheron
5 months agoBuck
5 months agoThomasena
6 months agoCatina
6 months agoAshlyn
5 months agoLemuel
5 months agoLauran
6 months agoThomasena
6 months ago