YAmost JS errors coming from inside scopes like this: var variable = "Hello"; myFunction("test", function(){ alert('my variable = '+variable); })Comment·Article·Apr 3, 2022·Beginners : var , let & const in JavaScript Ultimate guide (visual)