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
28 days agoEdelmira
2 days agoFelix
4 days agoBok
1 months agoRyan
4 days agoJanessa
14 days agoCassandra
2 months agoAngelo
4 days agoTeddy
11 days agoTheron
30 days agoBuck
2 months agoThomasena
2 months agoCatina
2 months agoAshlyn
1 months agoLemuel
1 months agoLauran
2 months agoThomasena
2 months ago