let
: Variables can be reassigned, but can’t be redeclared in the same scope.const
: Variables must be assigned an initial value, but can’t be redeclared in the same scope, and can’t be reassigned.- Hoisting: Before any JavaScript code is executed, all variables are hoisted, which means they're raised to the top of the function scope.
- Temporal dead zone: If a variable is declared using
let
orconst
inside a block of code, then the variable is stuck in what is known as the temporal dead zone until the variable’s declaration is processed. - Suggested to ditch
var
in place of usinglet
andconst
. - Template literals: Denoted with backticks ( `` ), template literals can contain placeholders which are represented using
${expression}
. - Examples:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
/* | |
* MCrypt API available online: | |
* http://linux.die.net/man/3/mcrypt | |
*/ | |
#include <mcrypt.h> |
NewerOlder