1 <!DOCTYPE HTML>2 <HTML>3 <Head>4 <MetaCharSet= "UTF-8">5 <title></title>6 </Head>7 <Body>8 </Body>9 Ten <Scripttype= "Text/javascript"> One //NaN A //Question 1: How to tell if an object is not a number - //IsNaN () if the parentheses are filled with a number that returns false - //Console.log (IsNaN ("abc")); the //Note: NaN is also a data type on some data - Console.log (typeofNaN);// Number - Console.log (IsNaN (true)); //false - Console.log (IsNaN ("123")); //false + - //null and undefined + //var result = (Null = = undefined); A //Console.log (result); at //undefined in the first place as a mistake to deal with. - //NULL indicates that a value is null - //when using, if a variable needs to clear the value, let the variable =null - - //How anonymous functions are called - (function(i) { in Console.log ("hehe"); - Console.log (i); to })(6); + - (function(){ the Console.log ("Heihei"); * })(); $ </Script>Panax Notoginseng - </HTML>
JS Knowledge Point Supplement