Front End Engineer

Full Version: Javascript code is throwing undefined
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Javascript code is throwing undefined
Please refer this Code:
Code:
function sample(){
console.log(test);
var testl
}
The code is throwing an undefined error because the variable "test" is not defined.