I have the follwing code in PHP:
if(is_numeric($first_name[0]) === true){
//Do something
}
How would I be able to do the same check using JavaScript? I also would like to get a PHP script to check if there is a number in $first_name at all, as I don't want the user to add a number in their first or last names please?