From 6f95fada332e9f915fa173368aa737b8ad2e05fc Mon Sep 17 00:00:00 2001 From: Keshav Bohra Date: Fri, 7 Jan 2022 02:09:26 +0530 Subject: [PATCH] Fixed some major issues --- 02_Day_Data_types/string_methods/match.js | 2 +- 02_Day_Data_types/string_methods/split.js | 2 +- .../03_booleans_operators_date.md | 6 +++--- 04_Day_Conditionals/04_day_conditionals.md | 2 +- 07_Day_Functions/07_day_functions.md | 2 +- .../09_day_higher_order_functions.md | 2 +- 10_Day_Sets_and_Maps/10_day_Sets_and_Maps.md | 8 ++++---- 14_Day_Error_handling/14_day_error_handling.md | 4 ++-- 15_Day_Classes/15_day_classes.md | 2 +- 16_Day_JSON/16_day_json.md | 2 +- 18_Day_Promises/18_day_promises.md | 2 +- 20_Day_Writing_clean_codes/20_day_writing_clean_codes.md | 2 +- .../25_day_world_countries_data_visualization_1.md | 6 +++--- 30_Day_Mini_project_final/30_day_mini_project_final.md | 2 +- 14 files changed, 22 insertions(+), 22 deletions(-) diff --git a/02_Day_Data_types/string_methods/match.js b/02_Day_Data_types/string_methods/match.js index 54e18a8..40d1ffd 100644 --- a/02_Day_Data_types/string_methods/match.js +++ b/02_Day_Data_types/string_methods/match.js @@ -14,7 +14,7 @@ let pattern = /love/gi console.log(string.match(pattern)) // ["love", "love", "love"] // Let us extract numbers from text using regular expression. This is not regular expression section, no panic. -let txt = 'In 2019, I run 30 Days of Pyhton. Now, in 2020 I super exited to start this challenge' +let txt = 'In 2019, I run 30 Days of Python. Now, in 2020 I super exited to start this challenge' let regEx = /\d/g // d with escape character means d not a normal d instead acts a digit // + means one or more digit numbers, // if there is g after that it means global, search everywhere. diff --git a/02_Day_Data_types/string_methods/split.js b/02_Day_Data_types/string_methods/split.js index 6b0ce6e..f955bcc 100644 --- a/02_Day_Data_types/string_methods/split.js +++ b/02_Day_Data_types/string_methods/split.js @@ -1,5 +1,5 @@ // split(): The split method splits a string at a specified place. -let string = '30 Days Of JavaScipt' +let string = '30 Days Of JavaScript' console.log(string.split()) // ["30 Days Of JavaScript"] console.log(string.split(' ')) // ["30", "Days", "Of", "JavaScript"] let firstName = 'Asabeneh' diff --git a/03_Day_Booleans_operators_date/03_booleans_operators_date.md b/03_Day_Booleans_operators_date/03_booleans_operators_date.md index ec847c5..24ea033 100644 --- a/03_Day_Booleans_operators_date/03_booleans_operators_date.md +++ b/03_Day_Booleans_operators_date/03_booleans_operators_date.md @@ -31,7 +31,7 @@ - [Increment Operator](#increment-operator) - [Decrement Operator](#decrement-operator) - [Ternary Operators](#ternary-operators) - - [Operator Precendence](#operator-precendence) + - [Operator Precedence](#operator-precendence) - [Window Methods](#window-methods) - [Window alert() method](#window-alert-method) - [Window prompt() method](#window-prompt-method) @@ -333,9 +333,9 @@ number > 0 -5 is a negative number ``` -### Operator Precendence +### Operator Precedence -I would like to recommend you to read about operator precendence from this [link](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence) +I would like to recommend you to read about operator precedence from this [link](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence) ## Window Methods diff --git a/04_Day_Conditionals/04_day_conditionals.md b/04_Day_Conditionals/04_day_conditionals.md index b2a935a..3d5a985 100644 --- a/04_Day_Conditionals/04_day_conditionals.md +++ b/04_Day_Conditionals/04_day_conditionals.md @@ -279,7 +279,7 @@ isRaining ### Exercises: Level 1 -1. Get user input using prompt(“Enter your age:”). If user is 18 or older , give feedback:'You are old enough to drive' but if not 18 give another feedback stating to wait for the number of years he neds to turn 18. +1. Get user input using prompt(“Enter your age:”). If user is 18 or older , give feedback:'You are old enough to drive' but if not 18 give another feedback stating to wait for the number of years he needs to turn 18. ```sh Enter your age: 30 diff --git a/07_Day_Functions/07_day_functions.md b/07_Day_Functions/07_day_functions.md index 710ba9b..7db74ab 100644 --- a/07_Day_Functions/07_day_functions.md +++ b/07_Day_Functions/07_day_functions.md @@ -524,7 +524,7 @@ Now it is time to express your thoughts about the Author and 30DaysOfJavaScript. 9. Density of a substance is calculated as follows:_density= mass/volume_. Write a function which calculates _density_. 10. Speed is calculated by dividing the total distance covered by a moving object divided by the total amount of time taken. Write a function which calculates a speed of a moving object, _speed_. 11. Weight of a substance is calculated as follows: _weight = mass x gravity_. Write a function which calculates _weight_. -12. Temperature in oC can be converted to oF using this formula: _oF = (oC x 9/5) + 32_. Write a function which convert oC to oF _convertCelciusToFahrenheit_. +12. Temperature in oC can be converted to oF using this formula: _oF = (oC x 9/5) + 32_. Write a function which convert oC to oF _convertCelsiusToFahrenheit_. 13. Body mass index(BMI) is calculated as follows: _bmi = weight in Kg / (height x height) in m2_. Write a function which calculates _bmi_. BMI is used to broadly define different weight groups in adults 20 years old or older.Check if a person is _underweight, normal, overweight_ or _obese_ based the information given below. - The same groups apply to both men and women. diff --git a/09_Day_Higher_order_functions/09_day_higher_order_functions.md b/09_Day_Higher_order_functions/09_day_higher_order_functions.md index a37dffd..95ff4e3 100644 --- a/09_Day_Higher_order_functions/09_day_higher_order_functions.md +++ b/09_Day_Higher_order_functions/09_day_higher_order_functions.md @@ -134,7 +134,7 @@ In JavaScript we can execute some activities in a certain interval of time or we - setInterval - setTimeout -#### Setting Interaval using a setInterval function +#### Setting Interval using a setInterval function In JavaScript, we use setInterval higher order function to do some activity continuously with in some interval of time. The setInterval global method take a callback function and a duration as a parameter. The duration is in milliseconds and the callback will be always called in that interval of time. diff --git a/10_Day_Sets_and_Maps/10_day_Sets_and_Maps.md b/10_Day_Sets_and_Maps/10_day_Sets_and_Maps.md index 95fc333..5b99405 100644 --- a/10_Day_Sets_and_Maps/10_day_Sets_and_Maps.md +++ b/10_Day_Sets_and_Maps/10_day_Sets_and_Maps.md @@ -71,8 +71,8 @@ const languages = [ 'French', ] -const setOfLangauges = new Set(languages) -console.log(setOfLangauges) +const setOfLanguages = new Set(languages) +console.log(setOfLanguages) ``` ```sh @@ -92,9 +92,9 @@ const languages = [ 'French', ] -const setOfLangauges = new Set(languages) +const setOfLanguages = new Set(languages) -for (const language of setOfLangauges) { +for (const language of setOfLanguages) { console.log(language) } ``` diff --git a/14_Day_Error_handling/14_day_error_handling.md b/14_Day_Error_handling/14_day_error_handling.md index 69cb0c0..0ef01ac 100644 --- a/14_Day_Error_handling/14_day_error_handling.md +++ b/14_Day_Error_handling/14_day_error_handling.md @@ -113,7 +113,7 @@ throw new Error('Required') // generates an error object with the message of Req ``` ```js -const throwErroExampleFun = () => { +const throwErrorExampleFun = () => { let message let x = prompt('Enter a number: ') try { @@ -126,7 +126,7 @@ const throwErroExampleFun = () => { console.log(err) } } -throwErroExampleFun() +throwErrorExampleFun() ``` ### Error Types diff --git a/15_Day_Classes/15_day_classes.md b/15_Day_Classes/15_day_classes.md index 7b46328..4ffe178 100644 --- a/15_Day_Classes/15_day_classes.md +++ b/15_Day_Classes/15_day_classes.md @@ -305,7 +305,7 @@ class Person { const fullName = this.firstName + ' ' + this.lastName return fullName } - get getscore() { + get getScore() { return this.score } get getSkills() { diff --git a/16_Day_JSON/16_day_json.md b/16_Day_JSON/16_day_json.md index 3cdfb40..ed52232 100644 --- a/16_Day_JSON/16_day_json.md +++ b/16_Day_JSON/16_day_json.md @@ -440,7 +440,7 @@ const user = { country: 'Finland', city: 'Helsinki', email: 'alex@alex.com', - skills: ['HTML', 'CSS', 'JavaScript', 'React', 'Pyhton'], + skills: ['HTML', 'CSS', 'JavaScript', 'React', 'Python'], age: 250, isLoggedIn: false, points: 30 diff --git a/18_Day_Promises/18_day_promises.md b/18_Day_Promises/18_day_promises.md index fe0dac7..b31298b 100644 --- a/18_Day_Promises/18_day_promises.md +++ b/18_Day_Promises/18_day_promises.md @@ -147,7 +147,7 @@ Let us another example when the promise is settled with reject. const doPromise = new Promise((resolve, reject) => { setTimeout(() => { const skills = ['HTML', 'CSS', 'JS'] - if (skills.icludes('Node')) { + if (skills.includes('Node')) { resolve('fullstack developer') } else { reject('Something wrong has happened') diff --git a/20_Day_Writing_clean_codes/20_day_writing_clean_codes.md b/20_Day_Writing_clean_codes/20_day_writing_clean_codes.md index 4028bdb..e6f76e8 100644 --- a/20_Day_Writing_clean_codes/20_day_writing_clean_codes.md +++ b/20_Day_Writing_clean_codes/20_day_writing_clean_codes.md @@ -202,7 +202,7 @@ for(let i = 0; i < len; i++){ // iterating an array using for of for( const name of names) { - console.log(name.toUpperCasee()) + console.log(name.toUpperCases()) } // iterating array using forEach diff --git a/25_Day_World_countries_data_visualization_1/25_day_world_countries_data_visualization_1.md b/25_Day_World_countries_data_visualization_1/25_day_world_countries_data_visualization_1.md index f923496..38d5e13 100644 --- a/25_Day_World_countries_data_visualization_1/25_day_world_countries_data_visualization_1.md +++ b/25_Day_World_countries_data_visualization_1/25_day_world_countries_data_visualization_1.md @@ -1,5 +1,5 @@
-

30 Days Of JavaScript: World Countrires Data Visualization

+

30 Days Of JavaScript: World Countries Data Visualization

@@ -14,7 +14,7 @@
-[<< Day 24](../24_Day_Project_soloar_system/24_day_project_soloar_system.md) | [Day 26 >>](../26_Day_World_countries_data_visualization_2/26_day_world_countries_data_visualization_2.md) +[<< Day 24](../24_Day_Project_solar_system/24_day_project_solar_system.md) | [Day 26 >>](../26_Day_World_countries_data_visualization_2/26_day_world_countries_data_visualization_2.md) ![Thirty Days Of JavaScript](../images/banners/day_1_25.png) @@ -36,4 +36,4 @@ 🎉 CONGRATULATIONS ! 🎉 -[<< Day 24](../24_Day_Project_soloar_system/24_day_project_soloar_system.md) | [Day 26 >>](../26_Day_World_countries_data_visualization_2/26_day_world_countries_data_visualization_2.md) +[<< Day 24](../24_Day_Project_solar_system/24_day_project_solar_system.md) | [Day 26 >>](../26_Day_World_countries_data_visualization_2/26_day_world_countries_data_visualization_2.md) diff --git a/30_Day_Mini_project_final/30_day_mini_project_final.md b/30_Day_Mini_project_final/30_day_mini_project_final.md index bedc7b0..9224b16 100644 --- a/30_Day_Mini_project_final/30_day_mini_project_final.md +++ b/30_Day_Mini_project_final/30_day_mini_project_final.md @@ -39,7 +39,7 @@ 1. Create the following animation using (HTML, CSS, JS) -![Countries daata](./../images/projects/dom_mini_project_countries_object_day_10.1.gif) +![Countries data](./../images/projects/dom_mini_project_countries_object_day_10.1.gif) 2. Validate the following form using regex.