Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Answer

Post Timeline

added 1 character in body
Source Link
John Slegers
  • 47.4k
  • 23
  • 206
  • 173
  • If you're writing server-side JavaScript code (Node.js), you can safely use the let statement.

  • If you're writing client-side JavaScript code and use a browser based transpiler (like Traceur or babel-standalone), you can safely use the let statement, however your code is likely to be anything but optimal with respect to performance.

  • If you're writing client-side JavaScript code and use a Node based transpiler (like the traceur shell script or Babel), you can safely use the let statement. And, because your browser will only know about the transpiled code, performance drawbacks should be limited.

  • If you're writing client-side JavaScript code and don't use a transpiler, you need to consider browser support.

    There are still some browsers that don't support let at all :

(*) Globally and functionally scoped variables can be initialized and used before they are declared because JavaScript variables are hoisted. This means that declarations are always muchmoved to the top of the scope.

  • If you're writing server-side JavaScript code (Node.js), you can safely use the let statement.

  • If you're writing client-side JavaScript code and use a browser based transpiler (like Traceur or babel-standalone), you can safely use the let statement, however your code is likely to be anything but optimal with respect to performance.

  • If you're writing client-side JavaScript code and use a Node based transpiler (like the traceur shell script or Babel), you can safely use the let statement. And because your browser will only know about the transpiled code, performance drawbacks should be limited.

  • If you're writing client-side JavaScript code and don't use a transpiler, you need to consider browser support.

    There are still some browsers that don't support let at all :

(*) Globally and functionally scoped variables can be initialized and used before they are declared because JavaScript variables are hoisted. This means that declarations are always much to the top of the scope.

  • If you're writing server-side JavaScript code (Node.js), you can safely use the let statement.

  • If you're writing client-side JavaScript code and use a browser based transpiler (like Traceur or babel-standalone), you can safely use the let statement, however your code is likely to be anything but optimal with respect to performance.

  • If you're writing client-side JavaScript code and use a Node based transpiler (like the traceur shell script or Babel), you can safely use the let statement. And, because your browser will only know about the transpiled code, performance drawbacks should be limited.

  • If you're writing client-side JavaScript code and don't use a transpiler, you need to consider browser support.

    There are still some browsers that don't support let at all :

(*) Globally and functionally scoped variables can be initialized and used before they are declared because JavaScript variables are hoisted. This means that declarations are always moved to the top of the scope.

added 116 characters in body
Source Link
John Slegers
  • 47.4k
  • 23
  • 206
  • 173
Commonmark migration
Source Link
Loading
Rollback to Revision 12
Source Link
John Slegers
  • 47.4k
  • 23
  • 206
  • 173
Loading
added 8 characters in body
Source Link
Jack Bashford
  • 44.3k
  • 11
  • 56
  • 84
Loading
added 483 characters in body
Source Link
John Slegers
  • 47.4k
  • 23
  • 206
  • 173
Loading
deleted 39 characters in body
Source Link
John Slegers
  • 47.4k
  • 23
  • 206
  • 173
Loading
added 6 characters in body
Source Link
John Slegers
  • 47.4k
  • 23
  • 206
  • 173
Loading
update
Source Link
georgeawg
  • 48.9k
  • 13
  • 78
  • 98
Loading
added 2171 characters in body
Source Link
John Slegers
  • 47.4k
  • 23
  • 206
  • 173
Loading
deleted 6 characters in body
Source Link
John Slegers
  • 47.4k
  • 23
  • 206
  • 173
Loading
Copy edited (e.g. ref. <http://english.stackexchange.com/questions/4645/is-it-ever-correct-to-have-a-space-before-a-question-or-exclamation-mark#comment206109_4645>), etc.
Source Link
Peter Mortensen
  • 31.3k
  • 22
  • 110
  • 134
Loading
deleted 2 characters in body
Source Link
John Slegers
  • 47.4k
  • 23
  • 206
  • 173
Loading
added 2 characters in body
Source Link
John Slegers
  • 47.4k
  • 23
  • 206
  • 173
Loading
added 139 characters in body
Source Link
John Slegers
  • 47.4k
  • 23
  • 206
  • 173
Loading
added 190 characters in body
Source Link
John Slegers
  • 47.4k
  • 23
  • 206
  • 173
Loading
Source Link
John Slegers
  • 47.4k
  • 23
  • 206
  • 173
Loading
lang-js

AltStyle によって変換されたページ (->オリジナル) /