{"id":3381,"date":"2023-02-27T20:29:08","date_gmt":"2023-02-28T01:29:08","guid":{"rendered":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/?p=3381"},"modified":"2023-02-27T20:29:08","modified_gmt":"2023-02-28T01:29:08","slug":"why-do-we-use-isnan-6a","status":"publish","type":"post","link":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/2023\/02\/27\/why-do-we-use-isnan-6a\/","title":{"rendered":"Why do we use isNaN? (6a)"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3388\" src=\"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/02\/Screen-Shot-2023-02-27-at-8.28.03-PM.png\" alt=\"\" width=\"1520\" height=\"626\" srcset=\"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/02\/Screen-Shot-2023-02-27-at-8.28.03-PM.png 1520w, https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/02\/Screen-Shot-2023-02-27-at-8.28.03-PM-300x124.png 300w, https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/02\/Screen-Shot-2023-02-27-at-8.28.03-PM-1024x422.png 1024w, https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/files\/2023\/02\/Screen-Shot-2023-02-27-at-8.28.03-PM-768x316.png 768w\" sizes=\"auto, (max-width: 1520px) 100vw, 1520px\" \/><\/p>\n<p>isNan is the function that is able to determine whether or not a value is an illegal number or not. The way I helped myself to memorize this is, <em>is the number an actual number or not?<\/em><\/p>\n<p><strong>is<\/strong> (the) <strong>N<\/strong>umber <strong>a<\/strong>ctually (a) <strong>N<\/strong>umber?\u00a0<\/p>\n<p>I come up with some interesting ways to memorize stuff for classes but I think that sometimes if it makes sense, then it works! isNan function is used to check coding numbers and when the returns true if the value is a NaN return false.\u00a0<\/p>\n<p>We use the isNaN function to be able to code and figure out if the output is true or false within a variety of numbers and to determine if the number is valid or not. This function can help determine if a number in a coding sequence is valid or invalid (true or false). Personally, I think that this is a great function to have in a coding system, it feels like an assist to determine if what you are entering is correct or if maybe there is something incorrect in a code that needs to be fixed.\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>isNan is the function that is able to determine whether or not a value is an illegal number or not. The way I helped myself to memorize this is, is the number an actual number or not? is (the) Number actually (a) Number?\u00a0 I come up with some interesting ways to memorize stuff for classes [&hellip;]<\/p>\n","protected":false},"author":29246,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[10531],"tags":[845092,845096,845005],"class_list":{"0":"post-3381","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-student-post","7":"tag-functions","8":"tag-isnan","9":"tag-javascript","10":"entry"},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/users\/29246"}],"replies":[{"embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/comments?post=3381"}],"version-history":[{"count":1,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3381\/revisions"}],"predecessor-version":[{"id":3389,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/posts\/3381\/revisions\/3389"}],"wp:attachment":[{"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/media?parent=3381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/categories?post=3381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/community.mis.temple.edu\/mis2101sec730spring2023\/wp-json\/wp\/v2\/tags?post=3381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}