Javascript code is throwing undefined

1 Replies, 248 Views

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.
(This post was last modified: 11-04-2023, 12:38 PM by mohan.)



Users browsing this thread: 1 Guest(s)