Skip to content

Commit 6ba98db

Browse files
committed
renamed html to examples
1 parent de698ca commit 6ba98db

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+8
-7
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

html/chapter01/11-ES6letconst.js renamed to examples/chapter01/11-ES6letconst.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
// @ts-check
22

3-
//* ****** EcmaScript 6: let and const keywords
4-
// EcmaScript 6 Constants
5-
const PI = 3.141593;
6-
// PI = 3.0; //throws error
7-
console.log(PI);
3+
//* ****** EcmaScript 2015 (ES6): let and const keywords
84

9-
//* ****** EcmaScript 6: let is the new var
5+
//* ****** EcmaScript 2015 (ES6): let is the new var
106
var framework = 'Angular';
117
var framework = 'React';
128
console.log(framework);
@@ -15,7 +11,7 @@ let language = 'JavaScript!';
1511
// let language = 'Ruby!'; //throws error
1612
console.log(language);
1713

18-
//* ****** EcmaScript 6: variables scope
14+
//* ****** EcmaScript 2015 (ES6): variables scope
1915
let movie = 'Lord of the Rings';
2016
// var movie = 'Batman v Superman'; //throws error, variable movie already declared
2117

@@ -47,3 +43,8 @@ console.log(starWarsFan());
4743
console.log(marvelFan());
4844
console.log(movie);
4945
blizzardFan();
46+
47+
// EcmaScript 2015 (ES6) Constants
48+
const PI = 3.141593;
49+
// PI = 3.0; //throws error
50+
console.log(PI);
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)