javascript is variable a string

Solutions on MaxInterview for javascript is variable a string by the best coders in the world

showing results for - "javascript is variable a string"
Lucas
12 May 2016
1if (typeof myVar === 'string'){
2    //I am indeed a string
3}
Mario
22 Feb 2019
1if (typeof myVar === 'integer'){
2    //I am indeed an integer
3}
4
5if (typeof myVar === 'boolean'){
6    //I am indeed a boolean
7}
queries leading to this page
are javascript variable stringcheck if value is string jsjs check if valid numbercheck if value is string javascriptcheck if string is an integer nodejs if on stringjs check is numbertest if string javascriptis number check in jsvariable is string jsjavascript check if is numerichow to check if the type of a variable is string in jshow to detect if variable is a string in jqerycheck if variable is string in jstypescript check if stringcheck if parameter is string javascriptjavascript verify string is not used beforecheck if a string is a number javascriptjs check if a var is a particular stringcheck if interger or string jscheck if value is part of stringcheck variable is a stringcheck if string has number in jshow to check if something is a string jstest if is string javascriptjavascript check if string represents numbercheck if a variable is a string in jsif var is string jsjs string is digitjs check object is stringjs check that stringhow to check if a string is numeric in javascriptjavascript how to check if a value is a stringcheck if is number js 27typescript check is value stringhow to check given string number is number javascripthow to check if something is a digit string javascriptcheck if variable is object or stringcheck text if javascripthow to check if string or number jshow to know if a variable is a string jsjs testing whether a variable is a stringjavascript check value is a stringhow to check if a type of parameter is string in jsjs check if value is a stringhow to check if variable is in string javascripthow to check if string is a number jscheck if string have number javascripthow to check if variable is string javascriptjs check if a value is numbercheck if datatype is string obejctcheck if argument is a stringjavascript detect variable is a stringcheck if is string jsis string javascrpitjs check variable is stringdo if var is stringjavascript if not stringjavascript check if not in stringcheck if value is numeric javascriptes6 check if stringtest if a string number is different to a string javascriptcheck string is number javascriptjavascript if a var is a stringjavascript not stringverify if is number in string javascriptjavascript code to verify if a string is numericjavascript how to check if string is numbertest if a string is a number javascripthow to validate the given number based on conversion in javascripttypescript check if something is type stringjs check if variable is string or objectjs check if a variable is a stringcheck if a string is a number jsisstring is jscheck variable is a string or numbejavascripthow to check if a string is a number in javascripthow to check if it is a string javascriptjavascript check if string is numeric onlycheck if string is an integer javascripttype of string checkjavascript check if instance of stringjs check string or objecttypescript check if param is string or string arrayjavascript check if sringjs check if value is stringjavascript check if string is numbernodejs check if string is numberjavascript check if the value is a stringjavsacrt check if string is integerjavascript check stringjs check if a string is a stringif value is not a string javascriptcheck if number in string javascriptcheck if a string is a decimal number in javascriptcheck if string int js 5ccheck if variavle is a string javascriptcheck if is strin jscheck if a value is a number javascripttest if is stringcheck if string has numbers javascriptcheck if variable is a string jstypescript check if any type is stringcheck if variable contains text javascriptjavascript check if object is string 5b 5d 5b 5dcheck if string value javascripthow to check a string is number or not in jscheck if is a string javascriptcheck if variable is string javascriptjavascript detect string is numberjavascript how to chec if strings contain a numberreturn true if string is a number javascriptcheck if a variable is string javascriptjavascript how to check if var is stringjavascript string number validationcheck if variable string javascriptjavascript find string is valid numberhow to check if a var is a string javascripttypescript check if string ishow to check whether a var is string or number using javascriptcheck is string is number javascripthow to find out if somethiung is ca string or nothow to verify a valid list without number in javascriptjavascript check if is numbertestif string jsjavascript value is string or objectjs check if number stringhow to check if a variable is string in javascriptjavascript check object is stringcheck whether string is number javascripthow to test if a string is a number jsis not a string javascriptjs chek if var is functin or stringjs check for number in stringif string is included in javascript type do somethingjs if value not in stringcheck that variable is a string javascriptjs check if value is numbercheck variable is string in javascriptjs check if a string is a numberts if is stringjavascript check if number is a stringhow to check if a variable has a certain string valuejs function that checks for stringhow to check if a string is an integer javascriptjs detect if string is numberif var 3d stringcheck if input is a string jsjavascriopt how to check if a value is a number 3fjavascript is number checkhow to check given string is number in javascriptjavascript if is numberjs check if string is number or notjavascript if string is numberjs ensure that string is stringis stringcheck if var is a string javascriptcheck if it is string in javascriptjavascript check if value is in strignjs how to check for string in variablenode check if variable is stringif something is in a string javascriptjavascript check if value can be converted to numberjs is number stringcheck if value is a number javascripthow to check if not in a stringhow to check if a string is a number or not in javascripthow to check if something is a string javascripthow to check that type is string in tsstring isstring jscheck if input is string jshow to know if it 27s a number or a string javascriptjavascript check if a value is a stringhow to check text is number in node jsif javascript variable stringverify if string javascriptsee if return value is string typescripthow to heck whether variable is of string in jsnode js is stringcheck if a string has number javascriptcheck if string is number javascriptjs check if string is numbertypescript scheck if object is stringtest if variable type is string typescriptif value is not a string javasriptcheck if string is intager javascripthow to check variable is string type in typescriptcheck if string is number jscheck if something is a string javascriptjavascript 2c check if value is numberjs check if variable is stringjavascript check if number in stringcheck if string is an integer jscheck if is number javascriptcheck if numeric jsjavascript check if string or objecthow to check if the variable is string javascriptjavascript function to determine if something is a strionghow to check if a variable is a string jshow to tell if value is string javascirptif is a string javscriptcheck if type of is string javascripthow to check if string is a number javascripthow to check if the string is a number in javascriptis string a number javascriptcheck if in string is number javascriptcheck if string or number javascripthow to check if a type of parameter isstring in jscheck if data is number or string jscheck if string is a number node jscheck if a var is stringtest is variable is string jsjavascript string is a numbercheck if data string typescriptjavascript check if string is a numberhow to check var is a string or not javascriptreturn if number is string or integer jscheck string type javascriptjavascript check string objectlodash check is convertible to int javascript checking if string is number and stringhow to know if a variable has a string in jshow to check if a variable is a stringjavascript is number or string check if a variable has a string type in javascriptcheck is strin has numbers jsis int as string javascriptcheck if string is numberhow to determine wherther my value is string 5b 5d or stringif value is a string jstypescript check if string or objectcheck if there is a number in a string javascriptcheck if string is valid number javascriptcheck if string can be converted to number with javascriptjs check that string is a numbercheck if string has number javascriptcheck if value is a stringcheck if field type is string angularcheck if string is numeric jscheck if string is numebr jsjs isnumber stringnode if type of stringjavascript check is string or numberjavascript check if string contains any numbersidentify string jshow to check if value type is a string in javascripttypescript check stringcheck if variable is string node js 5djavascript get if varibale is stringjavascript check if type is stringcheck string is a numbber javascripthow to check if a string is not a number in javascriptcheck is string javascripthow to chekc if something is a string in javascriptjs check if string is integerhow to check if string is number in javascriptcheck value is string in javascriptcheck if string is in var javascripthow to check if the value is a stringjs detect if string is a numberis string 23check if javascriptjs check if value is numericcheck if item is string javascripthow to check string number in javascriptjs check string is numberjavascript function to see if its a stringjs check if string value is likecheck if string nodejsjs var is stringtypescript check is value has a stringjavascript value is stringcheck if variable has word typescripthow to check if param is stringhow to check value is string jahow to check is a string is a number jscheck is number in jshow to know that value is in string or object in javascriptcheck number string javascriptjavascript check number or stringangular check is stringjavascript check if value stringhow to check whether the given input is in a string javascript objectsjs is stringhow to check if it is a string in javascriptscript check string is number javascriptcheck if a string is number in jscheck if string is int in javascriptjavascript check if string is integerjavascript if is stringis number string jshow to check if string are in an object javascriptjs check is number stringjavascript check if variable is string or objecthow to check type of stringtest if string is number javascriptcheck if var is string nodehow to check a variable is string or not in javascriptcheck if variable is string in javascripthow to check a variable is string or number in javascriptroblox checking if number is intjavascript check if it is stringcheck if string is number nodejscheck if a string is number jshow to check string in javascripttypesting check if is a stringjavascript check if sentence contains word integer convertjs check if string is all numberssee if variable is string jsjavascript how to check if number or stringcheck is string is integer javascriptjavascript check string contains numberhow to see if it is string and not number in javascriptcheck variable is string or not in javascriptjavascript check string is numberjavascript check string is intjavascript if object is stringcheck if string is integer javascriptjavascript function that checks if string just has numbersjs check if string is numericjs check if is numberto check a string is of atype stringhow to check if a value is numeric in javascripthow to check if value is number in javascriptangular if string or objecthow to check if a string is a number javascriptnodejs is stringess6 how to check string is numbercheck if value is stringcheck if string can be int jsjs if string is in objecthow do you check if a value is a string in javascript 3fcheck for string javascriptjavascript check if value is stringstring value if is an object jscheck string is objectjavascript check if string has numberstypescript check for stringcheck js string ssee if is valid int node jshow to tell if something is a string javascriptstring isnumeric javascriptif not a string javascripthow to check if string is number javascriptcheck if object or string javascripttest if variable is string javascriptcheck isstring check if a string is an integer jsjavascript if string 3d 3d x 2aif string javascriptjs check if stringcheck for stringjavascript testing whether value a stringjs check if its stringtest if string is number jscheck if value is a string jscheck if string can be converted to number javascriptstring is digit in jsjavascript check if something is a stringcheck if variable has string node jsis string a valid numberhow to check if thier is a string in a varian 3dble javascriptnode js check if variable is stringjavascript method to determine if argument is a stringjavascript validate string is numbercheck if variable is stringcheck if element is a string javascriptjs test if there are numbers in stringnode js check if string is numberfunction to determine if a stringjavascript check if variable is a stringjs check if string is valid numbercheck value is a number javascriptchk if string is number javascripthow to check if it is string in jshow to check weather something is a string or a number javascripthow to check whether a argument is string data type in js check if string is type string javascriptif variable in string jsjs check if string or numberhow to check if a varible is string or an object injscheck if object is stringjavascript check if variable is stringif var 3d string javascriptif type is string javascriptjavascript check if variable is strcheck if a value is in string jscheck if stringhow to cehck if a variable is a string in jscheck the string is number in javascriptjs check if element or stringcheck if string is valid number jsjavascript how to check if a variable is a stringjavascript check if var is srtingjs if value is stringis string javascriptcheck if a string has numbers javascriptjavascript check if numbertypescript check if type is stringis num js how to check if type of a given value is string in javascripttest if variable is a string javascripthow to check a data is string in jscheck if variabe is a string in javascriptjavascript how to test if a variable is a stringis string jscheck if any is not string typescripthow to check if variable is a string javascriptnode if stringstring isstringwhy use isstring instead of typeofhow to check if a variable is a string javascripttypescript check type of stringreact check if parameter is stringhow to make sure the value is tring in javascripthow to check a string from an object in javascriptjavascript how to check if a string is numberjavascript check if numericcheck if somethign is a stgring in javascrtiptjavascript get if string or numberif string is number javasdcriptnode js check if string is a numberisstring jshow to check if input is string in javascripthow to check if a variable is a string or not in javascriptcheck for variable of string in javascripthow to check if variable hold string in jscheck for string typescripthow to check data is string nodejs check if stringjavascript check if variable is stringif js value is string checkcheck if string is parseable to number jscheck if the value is string or objectis istring javascripthow to check if content is string javascriptangular check even numberhow to check if its a stringjavascript if string is number or nothow to check if a string is an int jsjs is strninghow ot check if object is readct stringjavascript check if stringtypescript check if field is a stringvariables is string in javascriptreactjs how to check variable is stringcomplete check if a value isa string number or a numbercheck if is string javascriptis stringjsstring isnumeric jsis string is number jscheck var is string javascriptcheck a string is number or not javascriptcheck if string has numbers jscheck type string in reactchecking if a string is a digit jshow to check if variable is string in javascriptjs check string is numericcheck if something is a number javascriptnodejs check if string is y yes yescheck if varialbe is string in javascript check if var is a string jsjavascript simple is tring is an objectif valus in not in stringjavascript check a string is numbercheck string for a number javascripthow to check if string is a number in javascripthow to check if a string is a number jsjavascript check if item is straingjs check string have numbercheck if string javascriptjavascript how to check if variable is a stringhow to check variable is string in javascriptjavascript if string or objectcheck if it is stringhow to check if is a string in jsjs if variable is intstring is number or not in javascriptcheck if variable is string type in jsjs 3a how to test isstringhow to check if something is a string in javascripttypescript if stringhow to check isstring in jsjavascript check if something is stringjavascript how to check if parameter is stringjs if var is stringcheck if is string javascri 5btcheck isstring jscheck if string is a number javascripthow to check is the input is a string or not in javascriptjavascript is not type of stringcheck if string is number node jscheck if the value is string or not in javascriptjavascript check if is a stringlodash check string is numbercheck if something is a string jsjavascript isstringhow to check isstringjs string not a stringjavascript function to see if it 27s a stringhow to check if input is a string in reactcheck if something is in a string jsjavascript determine if argument is stringes6 check is string objectisstring javascriptjavascript check string numberjavascript chck if it is object or stringhow to check if a variable is a string in javascriptjs check if a string fucntionsif is a string jsvariable is string javascriptjavascript is string a numbertypesceipt check if type is stringcheck if the value is string in javascriptcheck if something is a numberjavascriptcheck if is a stringjavascript check var stringhow to check if value is a string in jshow to check if input is string jsjavascript check if it 27s a stringcheck if variable is string or number javascripthow to check if contants of string are type jsnode js validate amount of triescheck if data is string javascriptjs value is stringcheck is number javascriptcheck if a string javascriptcheck if object is a string javascripthow to make sure the value is string in javascriptstring isstringvalue is a stringcheck if string is number javasciurpt number is string ins javascriptfor check the var is string or not in javascriptisnumber in string jscheck if variable is string jscheck if string is int jsjs how to check if numberts check if is stringhow to check value is string or not in javascriptjavascript check if a string represent a numberjavascript is element stringverifying if is a stringnode js if string not a digitcheck if str is number jshow to chekc thenumber if it is in string type jscheck if type is string jscheck if variable is not string javascriptcheck if not string type jsnumber or string javascripttypescript check if variable is stringjs string is numberjavascript number or stringjs if string numberjs check if a string is intcheck if string is number javscriptcheck if string is numeric javascriptcheck if type of string javascriptjavascript string is numbertypescript check if input is stringangular string type checkcheck string is a number jscheck if object is string tsjs check if string can be numbertypescript check if object or stringhow to check a sring is number in javascriptcheck if string is made of numberjs how to check is string contains a numberif 28var 3d 3d 27string 27 29 not working jsjavascript check value is stringjs check if something is a stinghow to check to see if string has integers javascriptnode js identify stringsjavascript check if a value is stringjavascript check if a variable contains a stringjavascript check if value is number or string numbercheck if a var is a string javascriptcheck if a variable is a string jscheck for string variable in jshow to determine if an input is not a string javascriptcheck string is number jsfunction for checking if a string is a number javascriptcheck if string is integer in javascriptjavascript is value a stringjavascript check if value is numberelegant way to check a value of ratio in javascript is not a number 2f infinityjs check type stringcheck value is string jsjs test if string is integerjavascript check if can convert to numberjavascript check if there is number in a stringcheck if string is a digit javascriptjavascript check if string number is croissantjs check if var is stringcheck if string of numbers is a number javascriptfind out if var is a string javascriptcheck if number or string javascriptif variable is string javascriptjavasctipt is textcheck if string is integer jsjs check if string can be converted to numberhow to check if variable is a string or objectjs i s stringjavascript check if a numberif not string javascriptreact check if is stringhow to check if value is string in javascripthow to check if a str is a number jscheck istring javascriptjs check string for numericif input is not string javascriptjavascreipt check if is numberjavascript number to stringjs string is numbetrhow to check if element is string in jshow to check if a var is string reacthow to check string have a number or not in javascriptjavascript check if value is a stringcheck if variable is string javascrptvariable with type number or string javascriptcheak type of string in jsjavascript is variable a stringjs if 3d stringhow to check if a string is a number or not javascripthow to ensure type of variable is string in javascriptcheck if a string can be converted to int nodehow to check variable is string or object in javascriptcheck to see if value is stringjs check if string or intcheck string is numberic javascriptstringis int only javascripthow to know if value is a string in javacriptcheck if its string typescriptes6 check type of tringjs is string 3fcheck if string is whole number javascriptis string numeric javascriptjs check if variable is a stringjs if variable is stringcheck the string is not number in javascriptjavascript verify string is a numberhow to find if something is a string in jsis variable string jsjs string number checkcheck if a variable is a string javascriptjavascript is a stringjs check if a value is a stringjavascript string is number checkcheck if var is stringcheck if variable is string nodejshow to check if a value is a string javascriptjavascript check variable is stringhow to check if something is a number in javascriptjavascript check if text is numberjavscript 2bid item 3d 3d 3d stringcheck string jscheck if variable is a string javascrip tcheck if it is a string javascriptjs check if is numericchecking if something is a text or a number jsjs assert if string is numberhow to check a variable is string in javascriptcheck if value is string or objectcheck if element is string jsjs how to check if string is decimaljs verify if variable is stringsee if string is number javascriptcheck if it is string javascriptcheck if value is number or string jsdetect type of stringsis number js stringcheck if var is stirng jscheck if object is string javascriptjavascript check is a stringhow to verify a value in an object is a string javascripthow to check if a varible is string or an objectjavascript check if object is stringstring is number javascriptjavascript check for stringnode js identify strings modelcheck if variable is a string javascriptif type is string typescriptcheck is string jstypescript check if is stringverify string javascriptjs chec if something is in a stringjavascript check string if whole numbercheck if variable is a string in jshow to check string 22 22js check var stringjavascript check if object or stringhow to check if variable is str in javascripthow to verify if string is a name javascriptcheck if is stringjs ensure numbercheck for string jsjavascrypt check if is numbercheck string is a number javascriptif string is number javascriptis string in javascripthow to do if something is a stringjs isstringcheck something is not a stringhow to check string is number in javascriptcheck if its stringcheck if the variable is string javascriptcheck if a variable is text skriptcheck if variable is a function javascriptcheck if string is all numbers jsjavascript check if string is stringcheck if is number javascirpttypescript check if string in 22 22how to check if a string is number javascriptjavescript check if variable is stringjs is numericknow if input is string jshow to check if there is a number in a string javascripthow to check if a string 3d somethingcheck if string number javascriptjavascript check if a string is a numbercheck is stringjavascript if variable is stringcheck stringhow to know if there 27s a number in a string jshow to check whether a value is string or not in javascriptjavascript if a string can be numbervanilla js check if a given input is a stringjavascript check if is stringhow to check if a value is string in javascriptjavascript check whether string is a numbervariable is stringempty javascriptvar is string jsjs check if is stringhow to check if a string is a number javascripcheck if a string is numeric javascriptcheck if type of variable is string javascripthow to check if something is in a string jsjavascript know if variable is stringnodejs check if is stringjs how to check if integer if its a string numberjavascript check variable is 27 27js how to check if string is in a variablehow to scheck if var is string in jshow to determine string in jsjavascript validate if numerices6 check is stringcheck if value is number jscheck if a value is string javascriptmethod know variable is string javascriptcheck if something is string javascriptjavascript check if string can be converted to numberjavascript 2c check if value is a numbertest if a string has a number javascriptjs if stringis number check jscheck if javascript is stringjavascript check if numberujava script check if input is stringjs check if something is a stringjs test if string is numberjavascript code to check if variable is stringjavascript can you test stringcheck if string is int javascripthow to check if given variable is string in jscheck if a string looks like a string in javascriptcheck if value is text jsjavascript verify string is numberjs check if input is stringcheck if a string is number javascriptcheck text is number javascriptcheck not a string javascriptjs check is variable is stringjavascript check if string or numbercheck if var is type string reactjsisastringhow to check if a string is a number node jshow to check if variable is a number or string in jsnotting a string javascripttypescript check if instance of stringdetect if lzutf8 string type jscheck if a value is string in jscheck if it 27s a string javascriptjs check if string integerjavascript check if string has numbercheck if element is an string javascriptcheck if string or object javascriptcheck if variable has string value javascriptjavascript find if string is a numberjavascript is valid stringhow to check whether a string is a number in javascripttypescript check if object is string 5b 5d 5b 5dcheck variable is a string javascriptto check if type string javascriptcheck if string is an objectjs if string is numbercheck all possible types from str jsjs check if object is stringhow to check is a string has numbers jscheck if given string is number javascriptjavascript to check if a string is numerichowto validate if javascript string is numericif value in obj is stringjavascript how to check if something is a stringcheck sring typehow to check if variable is string jscheck if input is a string javascriptnode js check is stringjavascript check if variable is of type stringjavascript check if string numericscheck if var is string jshow to check if a string is completely made of numbers in javascriptisnumber string javascriptjavascript object is stringhow to check if stringhow to check if a variable has any of the two strings in javascripthow to tell if a string is a number javascripthow to check if the variable is string in javascriptcheck string is number nodejscheck that var is string jsif string if numbers in javascripthow to see if a number is a numbercheck if something is string jshow to know if a string variable has data in jsjs make sure somthing is a numberjavascript test a string var for another string varjs know if string is numberpython check if char is a numberjavascript numeric check on stringhow to check if it is string in javascriptcheck if input is string javascriptfunction to check if number or string jshow to ask that a string is a number in javascriptjs validate string is 4 charts of numbersjs check if is a numberjavascript check if value is numericcheck if string contains number javascriptjavascript check string or numberhow to check if a variable is equal to a string or a different string javascriptcheck if something is in string javascriptjavascript check if parameter is stringhow to determine if an argument is a stringhow to check variable is number or string in javascriptnode check if string is numericsee if string is valid number jsjs check if a string is an integerjavascript function to check whether a string is a nucheck if variable is string type in js 5cjs check string for numberjavascript check string convert to numberjavascript check if it 27s stringjavascript test if stringhow to check input is string or not in javascriptcheck if variable is string value javascripthow to check if the string is a number jsjavascrit to check if it is a stringcheck if var is a stringif var is string javascriptcheck if string is a number jsjavascript check if string is numberjavascript check is string numberts if string is in typedistinguish if input is string or array javascriptjavascript string is numericcheck variable is string javascriptjavascript validate string without numbercheck if string is validjavascript if string is 1how to check if a string contains a number in javascriptjavascript check if var is type of elementjs test if sth is a numberhow to check a value is string or number in javascriptjavascrip check if a string is a numberjs test if element is number or stringcheck variable is string or function javascripthow to check if string had number javascriptcheck in string is a number jses6 check value stringtypescript check if a variable is a stringcheck string or number in javascriptjs test if var is stringjavascript is stringif how to check if the argument is string in javascriptcheck string or number javascriptjavascript check if string is digithow to determine if function is a string javascriptif 3d string javascripthow to check if value is string javascriptcheck if a value is string in javascriptjs is numerichow to check if a given text in string or number in javascxriptnodejs check if variable is stringhow to check if a variable is of type string in javascriptcheck if string has a number jscheck if object is a stringjavascript check for number in stringjs check if string has numberscheck if object javascript is stringjavascript check if type is not stringhow to check if value is not a string in javascriptfunction to check a numeric string in javascriptcheck type of var is string in jsjs isstringhow to check is input is string javascripthow to check value is in string in jsjavascript check if string is valid numberstring check number jsif string is a number javascriptcheck if a variable is a string or an objecthow to check for numbers in a string javascriptjavascript checking if string is a numberfunction check string alert javascriptjavascript condition if a var is stringjs check if type is stringjavascript check string or objecthow to check is a number jscheck if value is number javascripthow to know if a string contains a valid number in jscheck str type javascripthow to check type of a variable in not string in jshow to make sure a string or a number is passed into my functionjs check is stringtest to see if string is number javascriptlet is a number or string in jsjavascript how to check if its a variablehow to know if there a number in a string javascriptjs if type is stringhow to get if its a string or other in jsjs how to check if stringcheck if var is string javascriptif var is stringif var string javascriptistext jsif string javascriothow to check if value is number or string in javascriptcheck string is number in javascriptjavascript check if varibale is stringjs check stringhow to check is number in string jsjs check if string is a numberhow to check all number string using jsjavascript fuction for checking if its stringjavascript check if var is stringcheck if numeric javascriptcheck value is numeric in javascriptcheck if value is a string javascriptcheck if variable is string or function jsnode if var is stringtypescript string checkjavascript detect stringcheck if a value is numeric in javascriptjs if string is number onlyhow to check if a variable is a number or string javascriptjavascript check if string is numericjavascript how to check if a string is a numberjavascript is variable a string