lkpworlds.blogg.se

Javascript for impatient programmers
Javascript for impatient programmers






javascript for impatient programmers

I recommend to avoid it – why is explained in §13.4.3 “Recommendation: always use strict equality”. JavaScript also has a = comparison operator. equal( 'I see ' + 3 + ' monkeys', 'I see 3 monkeys') // Comparison operators assert. equal( 10n / 4n, 2n) // Operators for strings assert. equal( 10 / 4, 2.5) // Operators for bigints assert. equal( true || false, true) // Or // Operators for numbers assert. equal( true & false, false) // And assert. They will all be explained in more detail later in this book. Don’t worry if some things don’t make sense, yet. This is a very first look at JavaScript’s syntax.

  • 7.7 Automatic semicolon insertion (ASI).
  • 7.5.2 Same syntax: object literal and block.
  • javascript for impatient programmers

  • 7.5.1 Same syntax: function declaration and function expression.
  • javascript for impatient programmers

  • 7.3.1 Valid identifiers (variable names, etc.).
  • 7.1.5 Legal variable and property names.







  • Javascript for impatient programmers