From 9792e76bc750b29502f3cc29dfe88db9f3e75b12 Mon Sep 17 00:00:00 2001 From: vishdee <133800294+vishdee@users.noreply.github.com> Date: Fri, 5 Jul 2024 21:25:55 +0000 Subject: [PATCH 1/2] Initial commit From 583d3488f85867df6dabe46fcaae5dbd8ab3ed90 Mon Sep 17 00:00:00 2001 From: vishdee <133800294+vishdee@users.noreply.github.com> Date: Fri, 5 Jul 2024 21:25:56 +0000 Subject: [PATCH 2/2] Pending changes exported from your codespace --- .vscode/settings.json | 1 - Ch01/01_04/editors.txt | 10 +++++++++- Ch02/02_01/notes.txt | 9 +++++++++ Ch03/03_05/transcript.js | 1 + Ch03/03_06/transcript.js | 2 ++ Ch03/03_09/transcript.js | 3 +++ Ch04/04_01/transcript.js | 1 + 7 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 Ch02/02_01/notes.txt diff --git a/.vscode/settings.json b/.vscode/settings.json index af3e6d3..b2874f0 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -17,7 +17,6 @@ "files.autoSave": "afterDelay", "screencastMode.onlyKeyboardShortcuts": true, "terminal.integrated.fontSize": 18, - "workbench.activityBar.visible": true, "workbench.colorTheme": "Visual Studio Dark", "workbench.fontAliasing": "antialiased", "workbench.statusBar.visible": true, diff --git a/Ch01/01_04/editors.txt b/Ch01/01_04/editors.txt index 4e934c6..019e00d 100755 --- a/Ch01/01_04/editors.txt +++ b/Ch01/01_04/editors.txt @@ -2,4 +2,12 @@ https://code.visualstudio.com/ https://www.sublimetext.com/ http://brackets.io/ https://www.jetbrains.com/phpstorm/ -https://www.jetbrains.com/webstorm/ \ No newline at end of file +https://www.jetbrains.com/webstorm/ + +Java free book: +https://eloquentjavascript.net/ +https://exploringjs.com +https://github.com/getify/You-Dont-Know-JS +https://developer.mozilla.org +https://caniuse.com +https://quirksmode.org \ No newline at end of file diff --git a/Ch02/02_01/notes.txt b/Ch02/02_01/notes.txt new file mode 100644 index 0000000..e678509 --- /dev/null +++ b/Ch02/02_01/notes.txt @@ -0,0 +1,9 @@ +variable: +var x = 25; +var WhereAmI="Austin, Texas" +var variable1=1, variable2=2,.. +we can delare more variables in one line +We cannot use reserved words as variable key. search for js reserved words in mozella + +Strings: +02_02 \ No newline at end of file diff --git a/Ch03/03_05/transcript.js b/Ch03/03_05/transcript.js index 53cfe93..3c8e734 100755 --- a/Ch03/03_05/transcript.js +++ b/Ch03/03_05/transcript.js @@ -3,6 +3,7 @@ myArray; var daysOfTheWeek = ["Sunday", "Monday", "Tuesday", "Wednesday"]; daysOfTheWeek; +//the order is preserved for arrays var myList = [0, 1, 2, "string1", "string2", "string3", true, false]; myList; diff --git a/Ch03/03_06/transcript.js b/Ch03/03_06/transcript.js index 481ddab..08ecb00 100755 --- a/Ch03/03_06/transcript.js +++ b/Ch03/03_06/transcript.js @@ -19,8 +19,10 @@ counties.pop(); delete counties[2]; counties; +//this will not delete the space occupied by counties[2], to delete space use splice. counties.splice(2, 1); +//2=position of the item to delete, 1= no of items to delete. counties; counties.length; diff --git a/Ch03/03_09/transcript.js b/Ch03/03_09/transcript.js index 81e69f8..a087d82 100755 --- a/Ch03/03_09/transcript.js +++ b/Ch03/03_09/transcript.js @@ -11,11 +11,14 @@ regex.test(string3); regex.test(string4); regex = /this/i; +//"/i" by adding this, it will ignore letter case regex = /^this/i; +// this will comes true for all this come at the begining of the line regex = /this$/i; + regex = /ever.$/i; regex = /ever\.$/i; diff --git a/Ch04/04_01/transcript.js b/Ch04/04_01/transcript.js index 04ac60d..9596579 100755 --- a/Ch04/04_01/transcript.js +++ b/Ch04/04_01/transcript.js @@ -8,6 +8,7 @@ one === two; // false one == one; // true one == "1"; // true (?!) +//== converts the data type one != "1"; // false (?!) one === "1"; // false