From 50c30655d777ab068d912a08a931fd3a748d06b6 Mon Sep 17 00:00:00 2001 From: MumuNiMochii Date: Tue, 11 Jan 2022 23:10:12 +0800 Subject: [PATCH] commit on 'answers' --- .../01_Scripts/01_Inline_Script/index.html | 12 ++ .../01_Scripts/02_Internal_Script/index.html | 14 +++ .../01_Scripts/03_External_Script/index.html | 12 ++ .../01_Scripts/03_External_Script/script.js | 1 + .../04_Multiple_External_Scripts/index.html | 13 ++ .../04_Multiple_External_Scripts/main.js | 1 + .../04_Multiple_External_Scripts/message.js | 1 + .../02_Data_Types/01_Numbers/index.html | 19 +++ .../02_Data_Types/02_Strings/index.html | 16 +++ .../02_Data_Types/03_Booleans/index.html | 15 +++ .../02_Data_Types/04_Undefined/index.html | 15 +++ .../Answers/02_Data_Types/05_Null/index.html | 15 +++ .../06_Checking_Data_Types/index.html | 26 ++++ .../Answers/03_Variables/index.html | 42 +++++++ .../Answers/04_Exercises/datatypes.js | 13 ++ .../Answers/04_Exercises/index.html | 67 +++++++++++ .../Answers/04_Exercises/variables.js | 13 ++ .../01_Data_Types/01_Primitive/index.html | 53 ++++++++ .../01_Data_Types/02_Non-Primitive/index.html | 107 +++++++++++++++++ .../01_Declaring_Number_Data_Types/index.html | 28 +++++ .../02_Numbers/02_Math_Object/index.html | 61 ++++++++++ .../03_Random_Number_Generator/index.html | 23 ++++ .../Answers/03_Strings/01_Types/index.html | 26 ++++ .../03_Strings/02_Concatenation/index.html | 113 ++++++++++++++++++ .../03_Methods/01_length/index.html | 18 +++ .../index.html | 19 +++ .../03_Methods/03_toUpperCase()/index.html | 16 +++ .../03_Methods/04_toLowerCase()/index.html | 16 +++ .../05_substr()_and_substring()/index.html | 28 +++++ .../03_Methods/06_split()/index.html | 34 ++++++ .../03_Methods/07_trim()/index.html | 21 ++++ .../03_Methods/08_includes()/index.html | 22 ++++ .../03_Methods/09_replace()/index.html | 18 +++ .../03_Methods/10_charAt()/index.html | 20 ++++ .../03_Methods/11_charCodeAt()/index.html | 21 ++++ .../03_Methods/12_indexOf()/index.html | 22 ++++ 36 files changed, 961 insertions(+) create mode 100644 01_Day_Introduction/Answers/01_Scripts/01_Inline_Script/index.html create mode 100644 01_Day_Introduction/Answers/01_Scripts/02_Internal_Script/index.html create mode 100644 01_Day_Introduction/Answers/01_Scripts/03_External_Script/index.html create mode 100644 01_Day_Introduction/Answers/01_Scripts/03_External_Script/script.js create mode 100644 01_Day_Introduction/Answers/01_Scripts/04_Multiple_External_Scripts/index.html create mode 100644 01_Day_Introduction/Answers/01_Scripts/04_Multiple_External_Scripts/main.js create mode 100644 01_Day_Introduction/Answers/01_Scripts/04_Multiple_External_Scripts/message.js create mode 100644 01_Day_Introduction/Answers/02_Data_Types/01_Numbers/index.html create mode 100644 01_Day_Introduction/Answers/02_Data_Types/02_Strings/index.html create mode 100644 01_Day_Introduction/Answers/02_Data_Types/03_Booleans/index.html create mode 100644 01_Day_Introduction/Answers/02_Data_Types/04_Undefined/index.html create mode 100644 01_Day_Introduction/Answers/02_Data_Types/05_Null/index.html create mode 100644 01_Day_Introduction/Answers/02_Data_Types/06_Checking_Data_Types/index.html create mode 100644 01_Day_Introduction/Answers/03_Variables/index.html create mode 100644 01_Day_Introduction/Answers/04_Exercises/datatypes.js create mode 100644 01_Day_Introduction/Answers/04_Exercises/index.html create mode 100644 01_Day_Introduction/Answers/04_Exercises/variables.js create mode 100644 02_Day_Data_types/Answers/01_Data_Types/01_Primitive/index.html create mode 100644 02_Day_Data_types/Answers/01_Data_Types/02_Non-Primitive/index.html create mode 100644 02_Day_Data_types/Answers/02_Numbers/01_Declaring_Number_Data_Types/index.html create mode 100644 02_Day_Data_types/Answers/02_Numbers/02_Math_Object/index.html create mode 100644 02_Day_Data_types/Answers/02_Numbers/03_Random_Number_Generator/index.html create mode 100644 02_Day_Data_types/Answers/03_Strings/01_Types/index.html create mode 100644 02_Day_Data_types/Answers/03_Strings/02_Concatenation/index.html create mode 100644 02_Day_Data_types/Answers/03_Strings/03_Methods/01_length/index.html create mode 100644 02_Day_Data_types/Answers/03_Strings/03_Methods/02_Accessing_Characters_in_String/index.html create mode 100644 02_Day_Data_types/Answers/03_Strings/03_Methods/03_toUpperCase()/index.html create mode 100644 02_Day_Data_types/Answers/03_Strings/03_Methods/04_toLowerCase()/index.html create mode 100644 02_Day_Data_types/Answers/03_Strings/03_Methods/05_substr()_and_substring()/index.html create mode 100644 02_Day_Data_types/Answers/03_Strings/03_Methods/06_split()/index.html create mode 100644 02_Day_Data_types/Answers/03_Strings/03_Methods/07_trim()/index.html create mode 100644 02_Day_Data_types/Answers/03_Strings/03_Methods/08_includes()/index.html create mode 100644 02_Day_Data_types/Answers/03_Strings/03_Methods/09_replace()/index.html create mode 100644 02_Day_Data_types/Answers/03_Strings/03_Methods/10_charAt()/index.html create mode 100644 02_Day_Data_types/Answers/03_Strings/03_Methods/11_charCodeAt()/index.html create mode 100644 02_Day_Data_types/Answers/03_Strings/03_Methods/12_indexOf()/index.html diff --git a/01_Day_Introduction/Answers/01_Scripts/01_Inline_Script/index.html b/01_Day_Introduction/Answers/01_Scripts/01_Inline_Script/index.html new file mode 100644 index 0000000..3fb8766 --- /dev/null +++ b/01_Day_Introduction/Answers/01_Scripts/01_Inline_Script/index.html @@ -0,0 +1,12 @@ + + + + + + + 30DaysOfJavaScript: Inline Script + + + + + \ No newline at end of file diff --git a/01_Day_Introduction/Answers/01_Scripts/02_Internal_Script/index.html b/01_Day_Introduction/Answers/01_Scripts/02_Internal_Script/index.html new file mode 100644 index 0000000..75f636f --- /dev/null +++ b/01_Day_Introduction/Answers/01_Scripts/02_Internal_Script/index.html @@ -0,0 +1,14 @@ + + + + + + + 30DaysOfJavaScript: Internal Script + + + + + \ No newline at end of file diff --git a/01_Day_Introduction/Answers/01_Scripts/03_External_Script/index.html b/01_Day_Introduction/Answers/01_Scripts/03_External_Script/index.html new file mode 100644 index 0000000..3ee4929 --- /dev/null +++ b/01_Day_Introduction/Answers/01_Scripts/03_External_Script/index.html @@ -0,0 +1,12 @@ + + + + + + + 30DaysOfJavaScript: External Script + + + + + \ No newline at end of file diff --git a/01_Day_Introduction/Answers/01_Scripts/03_External_Script/script.js b/01_Day_Introduction/Answers/01_Scripts/03_External_Script/script.js new file mode 100644 index 0000000..7e9904d --- /dev/null +++ b/01_Day_Introduction/Answers/01_Scripts/03_External_Script/script.js @@ -0,0 +1 @@ +console.log('Welcome to 30DaysOfJavaScript!') \ No newline at end of file diff --git a/01_Day_Introduction/Answers/01_Scripts/04_Multiple_External_Scripts/index.html b/01_Day_Introduction/Answers/01_Scripts/04_Multiple_External_Scripts/index.html new file mode 100644 index 0000000..ec3b941 --- /dev/null +++ b/01_Day_Introduction/Answers/01_Scripts/04_Multiple_External_Scripts/index.html @@ -0,0 +1,13 @@ + + + + + + + 30DaysOfJavaScript: Multiple External Scripts + + + + + + \ No newline at end of file diff --git a/01_Day_Introduction/Answers/01_Scripts/04_Multiple_External_Scripts/main.js b/01_Day_Introduction/Answers/01_Scripts/04_Multiple_External_Scripts/main.js new file mode 100644 index 0000000..e0b69b5 --- /dev/null +++ b/01_Day_Introduction/Answers/01_Scripts/04_Multiple_External_Scripts/main.js @@ -0,0 +1 @@ +console.log('This is the main script.') \ No newline at end of file diff --git a/01_Day_Introduction/Answers/01_Scripts/04_Multiple_External_Scripts/message.js b/01_Day_Introduction/Answers/01_Scripts/04_Multiple_External_Scripts/message.js new file mode 100644 index 0000000..c822267 --- /dev/null +++ b/01_Day_Introduction/Answers/01_Scripts/04_Multiple_External_Scripts/message.js @@ -0,0 +1 @@ +console.log('This is the message script.') \ No newline at end of file diff --git a/01_Day_Introduction/Answers/02_Data_Types/01_Numbers/index.html b/01_Day_Introduction/Answers/02_Data_Types/01_Numbers/index.html new file mode 100644 index 0000000..fbee9c6 --- /dev/null +++ b/01_Day_Introduction/Answers/02_Data_Types/01_Numbers/index.html @@ -0,0 +1,19 @@ + + + + + + + 30DaysOfJavaScript: Data Types - Numbers + + + + + \ No newline at end of file diff --git a/01_Day_Introduction/Answers/02_Data_Types/02_Strings/index.html b/01_Day_Introduction/Answers/02_Data_Types/02_Strings/index.html new file mode 100644 index 0000000..569a29f --- /dev/null +++ b/01_Day_Introduction/Answers/02_Data_Types/02_Strings/index.html @@ -0,0 +1,16 @@ + + + + + + + 30DaysOfJavaScript: Data Types - Strings + + + + + \ No newline at end of file diff --git a/01_Day_Introduction/Answers/02_Data_Types/03_Booleans/index.html b/01_Day_Introduction/Answers/02_Data_Types/03_Booleans/index.html new file mode 100644 index 0000000..654abde --- /dev/null +++ b/01_Day_Introduction/Answers/02_Data_Types/03_Booleans/index.html @@ -0,0 +1,15 @@ + + + + + + + 30DaysOfJavaScript: Data Types - Booleans + + + + + \ No newline at end of file diff --git a/01_Day_Introduction/Answers/02_Data_Types/04_Undefined/index.html b/01_Day_Introduction/Answers/02_Data_Types/04_Undefined/index.html new file mode 100644 index 0000000..08d71bd --- /dev/null +++ b/01_Day_Introduction/Answers/02_Data_Types/04_Undefined/index.html @@ -0,0 +1,15 @@ + + + + + + + 30DaysOfJavaScript: Data Types - Undefined + + + + + \ No newline at end of file diff --git a/01_Day_Introduction/Answers/02_Data_Types/05_Null/index.html b/01_Day_Introduction/Answers/02_Data_Types/05_Null/index.html new file mode 100644 index 0000000..d2f8320 --- /dev/null +++ b/01_Day_Introduction/Answers/02_Data_Types/05_Null/index.html @@ -0,0 +1,15 @@ + + + + + + + 30DaysOfJavaScript: Data Types - Null + + + + + \ No newline at end of file diff --git a/01_Day_Introduction/Answers/02_Data_Types/06_Checking_Data_Types/index.html b/01_Day_Introduction/Answers/02_Data_Types/06_Checking_Data_Types/index.html new file mode 100644 index 0000000..fe64092 --- /dev/null +++ b/01_Day_Introduction/Answers/02_Data_Types/06_Checking_Data_Types/index.html @@ -0,0 +1,26 @@ + + + + + + + 30DaysOfJavaScript: Data Types - Checking Data Types + + + + + \ No newline at end of file diff --git a/01_Day_Introduction/Answers/03_Variables/index.html b/01_Day_Introduction/Answers/03_Variables/index.html new file mode 100644 index 0000000..656e891 --- /dev/null +++ b/01_Day_Introduction/Answers/03_Variables/index.html @@ -0,0 +1,42 @@ + + + + + + + 30DaysOfJavaScript: Variables + + + + + \ No newline at end of file diff --git a/01_Day_Introduction/Answers/04_Exercises/datatypes.js b/01_Day_Introduction/Answers/04_Exercises/datatypes.js new file mode 100644 index 0000000..6eff904 --- /dev/null +++ b/01_Day_Introduction/Answers/04_Exercises/datatypes.js @@ -0,0 +1,13 @@ +console.log(typeof negativeInteger) +console.log(typeof zeroInteger) +console.log(typeof positiveInteger) +console.log(typeof negativeDecimal) +console.log(typeof zeroDecimal) +console.log(typeof positiveDecimal) +console.log(typeof singleQuote) +console.log(typeof doubleQuote) +console.log(typeof backtick) +console.log(typeof trueBool) +console.log(typeof falseBool) +console.log(typeof undefinedVariable) +console.log(typeof emptyVariable) \ No newline at end of file diff --git a/01_Day_Introduction/Answers/04_Exercises/index.html b/01_Day_Introduction/Answers/04_Exercises/index.html new file mode 100644 index 0000000..3831e6d --- /dev/null +++ b/01_Day_Introduction/Answers/04_Exercises/index.html @@ -0,0 +1,67 @@ + + + + + + + 30DaysOfJavaScript: Exercises + + + + + + + + + + + \ No newline at end of file diff --git a/01_Day_Introduction/Answers/04_Exercises/variables.js b/01_Day_Introduction/Answers/04_Exercises/variables.js new file mode 100644 index 0000000..30c5f30 --- /dev/null +++ b/01_Day_Introduction/Answers/04_Exercises/variables.js @@ -0,0 +1,13 @@ +let negativeInteger = -10 + zeroInteger = 0, + positiveInteger = 42, + negativeDecimal = -16.84, + zeroDecimal = 0.0, + positiveDecimal = 420.69, + singleQuote = 'A string between single quotes', + doubleQuote = "A string between double quotes", + backtick = `A string between backticks`, + trueBool = true, + falseBool = false, + undefinedVariable = undefined, + emptyVariable = null \ No newline at end of file diff --git a/02_Day_Data_types/Answers/01_Data_Types/01_Primitive/index.html b/02_Day_Data_types/Answers/01_Data_Types/01_Primitive/index.html new file mode 100644 index 0000000..5dee89a --- /dev/null +++ b/02_Day_Data_types/Answers/01_Data_Types/01_Primitive/index.html @@ -0,0 +1,53 @@ + + + + + + + 30DaysOfJavaScript: Data Types - Primitive + + + + + \ No newline at end of file diff --git a/02_Day_Data_types/Answers/01_Data_Types/02_Non-Primitive/index.html b/02_Day_Data_types/Answers/01_Data_Types/02_Non-Primitive/index.html new file mode 100644 index 0000000..c8da9ae --- /dev/null +++ b/02_Day_Data_types/Answers/01_Data_Types/02_Non-Primitive/index.html @@ -0,0 +1,107 @@ + + + + + + + 30DaysOfJavaScript: Data Types - Non-Primitive + + + + + \ No newline at end of file diff --git a/02_Day_Data_types/Answers/02_Numbers/01_Declaring_Number_Data_Types/index.html b/02_Day_Data_types/Answers/02_Numbers/01_Declaring_Number_Data_Types/index.html new file mode 100644 index 0000000..0de41cf --- /dev/null +++ b/02_Day_Data_types/Answers/02_Numbers/01_Declaring_Number_Data_Types/index.html @@ -0,0 +1,28 @@ + + + + + + + 30DaysOfJavaScript: Data Types - Numbers: Declaring Number Data Types + + + + + \ No newline at end of file diff --git a/02_Day_Data_types/Answers/02_Numbers/02_Math_Object/index.html b/02_Day_Data_types/Answers/02_Numbers/02_Math_Object/index.html new file mode 100644 index 0000000..a13e732 --- /dev/null +++ b/02_Day_Data_types/Answers/02_Numbers/02_Math_Object/index.html @@ -0,0 +1,61 @@ + + + + + + + 30DaysOfJavaScript: Data Types - Numbers: Math Object + + + + + \ No newline at end of file diff --git a/02_Day_Data_types/Answers/02_Numbers/03_Random_Number_Generator/index.html b/02_Day_Data_types/Answers/02_Numbers/03_Random_Number_Generator/index.html new file mode 100644 index 0000000..1b5a147 --- /dev/null +++ b/02_Day_Data_types/Answers/02_Numbers/03_Random_Number_Generator/index.html @@ -0,0 +1,23 @@ + + + + + + + 30DaysOfJavaScript: Data Types - Numbers: Random Number Generator + + + + + \ No newline at end of file diff --git a/02_Day_Data_types/Answers/03_Strings/01_Types/index.html b/02_Day_Data_types/Answers/03_Strings/01_Types/index.html new file mode 100644 index 0000000..22cb099 --- /dev/null +++ b/02_Day_Data_types/Answers/03_Strings/01_Types/index.html @@ -0,0 +1,26 @@ + + + + + + + 30DaysOfJavaScript: Data Types - Strings: Types + + + + + \ No newline at end of file diff --git a/02_Day_Data_types/Answers/03_Strings/02_Concatenation/index.html b/02_Day_Data_types/Answers/03_Strings/02_Concatenation/index.html new file mode 100644 index 0000000..827a84e --- /dev/null +++ b/02_Day_Data_types/Answers/03_Strings/02_Concatenation/index.html @@ -0,0 +1,113 @@ + + + + + + + 30DaysOfJavaScript: Data Types - Strings: Concatenation + + + + + \ No newline at end of file diff --git a/02_Day_Data_types/Answers/03_Strings/03_Methods/01_length/index.html b/02_Day_Data_types/Answers/03_Strings/03_Methods/01_length/index.html new file mode 100644 index 0000000..b1eb4a6 --- /dev/null +++ b/02_Day_Data_types/Answers/03_Strings/03_Methods/01_length/index.html @@ -0,0 +1,18 @@ + + + + + + + 30DaysOfJavaScript: Data Types - Strings: Methods - Length + + + + + \ No newline at end of file diff --git a/02_Day_Data_types/Answers/03_Strings/03_Methods/02_Accessing_Characters_in_String/index.html b/02_Day_Data_types/Answers/03_Strings/03_Methods/02_Accessing_Characters_in_String/index.html new file mode 100644 index 0000000..4dc9f06 --- /dev/null +++ b/02_Day_Data_types/Answers/03_Strings/03_Methods/02_Accessing_Characters_in_String/index.html @@ -0,0 +1,19 @@ + + + + + + + 30DaysOfJavaScript: Data Types - Strings: Methods - Accessing Characters in String + + + + + \ No newline at end of file diff --git a/02_Day_Data_types/Answers/03_Strings/03_Methods/03_toUpperCase()/index.html b/02_Day_Data_types/Answers/03_Strings/03_Methods/03_toUpperCase()/index.html new file mode 100644 index 0000000..e7d84b0 --- /dev/null +++ b/02_Day_Data_types/Answers/03_Strings/03_Methods/03_toUpperCase()/index.html @@ -0,0 +1,16 @@ + + + + + + + 30DaysOfJavaScript: Data Types - Strings: Methods - toUpperCase() + + + + + \ No newline at end of file diff --git a/02_Day_Data_types/Answers/03_Strings/03_Methods/04_toLowerCase()/index.html b/02_Day_Data_types/Answers/03_Strings/03_Methods/04_toLowerCase()/index.html new file mode 100644 index 0000000..19bfba3 --- /dev/null +++ b/02_Day_Data_types/Answers/03_Strings/03_Methods/04_toLowerCase()/index.html @@ -0,0 +1,16 @@ + + + + + + + 30DaysOfJavaScript: Data Types - Strings: Methods - toLowerCase() + + + + + \ No newline at end of file diff --git a/02_Day_Data_types/Answers/03_Strings/03_Methods/05_substr()_and_substring()/index.html b/02_Day_Data_types/Answers/03_Strings/03_Methods/05_substr()_and_substring()/index.html new file mode 100644 index 0000000..69657fa --- /dev/null +++ b/02_Day_Data_types/Answers/03_Strings/03_Methods/05_substr()_and_substring()/index.html @@ -0,0 +1,28 @@ + + + + + + + 30DaysOfJavaScript: Data Types - Strings: Methods - substr() and substring() + + + + + \ No newline at end of file diff --git a/02_Day_Data_types/Answers/03_Strings/03_Methods/06_split()/index.html b/02_Day_Data_types/Answers/03_Strings/03_Methods/06_split()/index.html new file mode 100644 index 0000000..1e4531e --- /dev/null +++ b/02_Day_Data_types/Answers/03_Strings/03_Methods/06_split()/index.html @@ -0,0 +1,34 @@ + + + + + + + 30DaysOfJavaScript: Data Types - Strings: Methods - split() + + + + + \ No newline at end of file diff --git a/02_Day_Data_types/Answers/03_Strings/03_Methods/07_trim()/index.html b/02_Day_Data_types/Answers/03_Strings/03_Methods/07_trim()/index.html new file mode 100644 index 0000000..1e81f44 --- /dev/null +++ b/02_Day_Data_types/Answers/03_Strings/03_Methods/07_trim()/index.html @@ -0,0 +1,21 @@ + + + + + + + 30DaysOfJavaScript: Data Types - Strings: Methods - trim() + + + + + \ No newline at end of file diff --git a/02_Day_Data_types/Answers/03_Strings/03_Methods/08_includes()/index.html b/02_Day_Data_types/Answers/03_Strings/03_Methods/08_includes()/index.html new file mode 100644 index 0000000..8d99a3f --- /dev/null +++ b/02_Day_Data_types/Answers/03_Strings/03_Methods/08_includes()/index.html @@ -0,0 +1,22 @@ + + + + + + + 30DaysOfJavaScript: Data Types - Strings: Methods - includes() + + + + + \ No newline at end of file diff --git a/02_Day_Data_types/Answers/03_Strings/03_Methods/09_replace()/index.html b/02_Day_Data_types/Answers/03_Strings/03_Methods/09_replace()/index.html new file mode 100644 index 0000000..0da8af0 --- /dev/null +++ b/02_Day_Data_types/Answers/03_Strings/03_Methods/09_replace()/index.html @@ -0,0 +1,18 @@ + + + + + + + 30DaysOfJavaScript: Data Types - Strings: Methods - replace() + + + + + \ No newline at end of file diff --git a/02_Day_Data_types/Answers/03_Strings/03_Methods/10_charAt()/index.html b/02_Day_Data_types/Answers/03_Strings/03_Methods/10_charAt()/index.html new file mode 100644 index 0000000..e7d5e35 --- /dev/null +++ b/02_Day_Data_types/Answers/03_Strings/03_Methods/10_charAt()/index.html @@ -0,0 +1,20 @@ + + + + + + + 30DaysOfJavaScript: Data Types - Strings: Methods - charAt() + + + + + \ No newline at end of file diff --git a/02_Day_Data_types/Answers/03_Strings/03_Methods/11_charCodeAt()/index.html b/02_Day_Data_types/Answers/03_Strings/03_Methods/11_charCodeAt()/index.html new file mode 100644 index 0000000..2f2a595 --- /dev/null +++ b/02_Day_Data_types/Answers/03_Strings/03_Methods/11_charCodeAt()/index.html @@ -0,0 +1,21 @@ + + + + + + + 30DaysOfJavaScript: Data Types - Strings: Methods - charCodeAt() + + + + + \ No newline at end of file diff --git a/02_Day_Data_types/Answers/03_Strings/03_Methods/12_indexOf()/index.html b/02_Day_Data_types/Answers/03_Strings/03_Methods/12_indexOf()/index.html new file mode 100644 index 0000000..c438fec --- /dev/null +++ b/02_Day_Data_types/Answers/03_Strings/03_Methods/12_indexOf()/index.html @@ -0,0 +1,22 @@ + + + + + + + 30DaysOfJavaScript: Data Types - Strings: Methods - indexOf() + + + + + \ No newline at end of file