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.
Felicia
1 months agoEdelmira
3 days agoFelix
5 days agoBok
1 months agoRyan
5 days agoJanessa
15 days agoCassandra
2 months agoAngelo
5 days agoTeddy
12 days agoTheron
1 months agoBuck
2 months agoThomasena
2 months agoCatina
2 months agoAshlyn
1 months agoLemuel
1 months agoLauran
2 months agoThomasena
3 months ago