In my Angular application, I have written a JavaScript function that checks if the value of a text field is undefined or empty, and it is working properly.
$scope.checkNumber = function(user_answer){
if(user_answer == undefined){
return false;
}
}
My next challenge is to create a function that can determine whether the value is a string or a number and return a boolean. I am unsure about the correct syntax for Angular JavaScript. Can someone please assist me in solving this issue?