en
Bøger
Stoyan Stefanov

Object-Oriented JavaScript

  • Kirill Sandryhailohar citeretfor 3 år siden
    Tip

    Tips and tricks
  • DKhar citeretfor 3 år siden
    Functions allow you group together some code, give this code a name, and reuse it later, addressing it by name.
  • DKhar citeretfor 3 år siden
    Single line comments—start with // and end at the end of the line
    Multi-line comments—start with /* and end with */ on the same line or any subsequent line. Note that any code in between the comment start and the comment end will be ignored.
  • DKhar citeretfor 3 år siden
    ! has the highest precedence and is executed first, assuming there are no parentheses that demand otherwise. Then, in the order of precedence, comes && and finally ||
  • DKhar citeretfor 3 år siden
    !—logical NOT (negation)
    &&—logical AND
    ||—logical OR
  • DKhar citeretfor 3 år siden
    There are some additional characters which are rarely used: \b (backspace), \v (vertical tab), and \f (form feed).
  • DKhar citeretfor 3 år siden
    A string is a sequence of characters used to represent text.
  • DKhar citeretfor 3 år siden
    NaN is a special value that is also a number.
  • DKhar citeretfor 3 år siden
    When you sum infinity and minus infinity, you don't get 0, but something that is called NaN (Not A Number).
  • DKhar citeretfor 3 år siden
    the biggest number JavaScript can handle is 1.7976931348623157e+308 while the smallest is 5e-324.
fb2epub
Træk og slip dine filer (ikke mere end 5 ad gangen)