• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Data Conversions

Strings are not the same as numbers in JavaScript. If you store the number 5 in a variable, that’s not the same as storing the string “5” in a variable. The string “5” is a string, just like the string “Now is the time!”

This means that if you’ve stored the string “5” in a variable myStringValue, as follows, you should remember that it’s stored as text:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint