Basics: Input Validation - NaN

Pubblicato il: 25 agosto 2020
sul canale di: Rocket Academy
831
0

NaN stands for "not a number", which in JavaScript is a sentinel to tell the user that a value is invalid. This typically happens when we try to perform number operations on values that cannot be easily converted to numbers, for example trying to convert a string to a number with `Number("hello")`, or multiplying the string "hello" by 3, `"hello" * 3`.

Become a software developer in 6 months with Rocket Academy's live and online coding bootcamp. Get a job or a full refund.

Explore Rocket Academy's Coding Basics course:
Coding Basics Blurb: https://rocketacademy.co/courses/basics
Coding Basics Curriculum: https://basics.rocketacademy.co
Rocket Academy: https://rocketacademy.co
Rocket Academy Facebook:   / rocketacademy.co  


In questa pagina del sito puoi guardare il video online Basics: Input Validation - NaN della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Rocket Academy 25 agosto 2020, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 831 volte e gli è piaciuto 0 spettatori. Buona visione!