From 834b4e0f1cc6dadca1681195e116a6ec922159c1 Mon Sep 17 00:00:00 2001 From: Lior Ben-David Date: Mon, 19 Jun 2023 19:21:17 -0400 Subject: [PATCH 1/5] Rewrote introduction-js and made some grammer corrections to other insights in the workout --- .../intro-js/console-in-javascript.md | 2 +- .../intro-js/introduction-js.md | 19 ++++++++++++++++--- .../intro-js/javascript-basics-part-2.md | 2 +- .../intro-js/why-learn-javascript.md | 5 ++++- 4 files changed, 22 insertions(+), 6 deletions(-) diff --git a/javascript/javascript-core/intro-js/console-in-javascript.md b/javascript/javascript-core/intro-js/console-in-javascript.md index 4f4e776db9..23a100a18d 100644 --- a/javascript/javascript-core/intro-js/console-in-javascript.md +++ b/javascript/javascript-core/intro-js/console-in-javascript.md @@ -35,7 +35,7 @@ console.log("This is my message"); // This is my message ``` -More commonly it is used to show the current value of a variable when debugging. In this example we are logging the value of a variable called `username`: +More commonly it is used to show the current value of a variable when debugging. In this example, we are logging the value of a variable called `username`: ```js console.log("Username: " + username); diff --git a/javascript/javascript-core/intro-js/introduction-js.md b/javascript/javascript-core/intro-js/introduction-js.md index bd2ee7b309..a2b75a907d 100644 --- a/javascript/javascript-core/intro-js/introduction-js.md +++ b/javascript/javascript-core/intro-js/introduction-js.md @@ -14,17 +14,30 @@ category: must-know ## Content +You can think of every website as a car. + +The metal frame, the doors, the steering wheel: this is all HTML. + +The paint: this is CSS. + +The engine, wiring, and everything under the hood: this is JavaScript. + JavaScript is Everywhere! Every time you refresh your Twitter feed or search for a pair of skinny jeans on Amazon, you interact with JavaScript. -For instance, the following code shows an alert that you might be familiar with 👖: +It's what brings the web to life! + +Not only is JavaScript powerful enough to drive almost every web service you use, but it is also one of the more readable programming languages. +For example, here's code that makes sure a user is old enough to use your website: ```js -alert("Warning! 👖 no longer fit."); +let age = prompt("Please Enter Your Age") +if(age < 16) { + alert("You are too young to sign up, sorry!") +} ``` -![JavaScript_Jeans_Final](https://img.enkipro.com/bd7c491db166c1fcdc6144f145a186dc.png) JavaScript is essentially the language of the Web; Facebook, Google, Netflix, Microsoft, etc., all use it for one purpose or another. diff --git a/javascript/javascript-core/intro-js/javascript-basics-part-2.md b/javascript/javascript-core/intro-js/javascript-basics-part-2.md index 6e16bf516e..9281b7e27d 100644 --- a/javascript/javascript-core/intro-js/javascript-basics-part-2.md +++ b/javascript/javascript-core/intro-js/javascript-basics-part-2.md @@ -139,7 +139,7 @@ x y ``` -is understod as: +is understood as: ```js x; diff --git a/javascript/javascript-core/intro-js/why-learn-javascript.md b/javascript/javascript-core/intro-js/why-learn-javascript.md index fb56fbf97c..bda5953312 100644 --- a/javascript/javascript-core/intro-js/why-learn-javascript.md +++ b/javascript/javascript-core/intro-js/why-learn-javascript.md @@ -32,7 +32,7 @@ We can use it to make fully functional websites (front-end and back-end), mobile JavaScript has the largest programming community in the world[1]. Any problem you face, chances are someone has already published a solution online. - **High Demand** -JavaScript developers are needed by small and large companies. The average salary for Node.js developers in the US is about $[106,121](https://www.glassdoor.com/Salaries/software-engineer-nodejs-salary-SRCH_KO0,24.htm). +JavaScript developers are needed by small and large companies. The average salary for Node.js[2] developers in the US is about $[106,121](https://www.glassdoor.com/Salaries/software-engineer-nodejs-salary-SRCH_KO0,24.htm). > 💡There are over 1.8 Billion websites globally, and JavaScript is used on 95% of them. @@ -70,6 +70,9 @@ Why was **JavaScript** originally developed? [1: JavaScript Rules The World] JavaScript has been the most widely used programming language in the world for the good part of the last decade. +[2: Node.js] +Node.js is a tool that allows you to run JavaScript without your code being attached to an HTML file. + [!Statista_Popular_Languages](https://img.enkipro.com/21314c0f349267942234c15e076c4f85.png) > source: [Statista](https://www.statista.com/statistics/793628/worldwide-developer-survey-most-used-languages/) From ea9f01c715b3f3832a6dc66d6ffb09a68e6e4051 Mon Sep 17 00:00:00 2001 From: Lior Ben-David Date: Mon, 19 Jun 2023 22:24:08 -0400 Subject: [PATCH 2/5] Typo fix --- javascript/javascript-core/intro-js/introduction-js.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/javascript-core/intro-js/introduction-js.md b/javascript/javascript-core/intro-js/introduction-js.md index a2b75a907d..d906b66130 100644 --- a/javascript/javascript-core/intro-js/introduction-js.md +++ b/javascript/javascript-core/intro-js/introduction-js.md @@ -22,7 +22,7 @@ The paint: this is CSS. The engine, wiring, and everything under the hood: this is JavaScript. -JavaScript is Everywhere! +JavaScript is everywhere! Every time you refresh your Twitter feed or search for a pair of skinny jeans on Amazon, you interact with JavaScript. From 56573c337c659f01ca78e4e0aa866bd68e798964 Mon Sep 17 00:00:00 2001 From: Lior Ben-David Date: Wed, 21 Jun 2023 12:53:43 -0400 Subject: [PATCH 3/5] Formating revision --- .../intro-js/introduction-js.md | 18 +++++++----------- .../intro-js/why-learn-javascript.md | 6 ++---- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/javascript/javascript-core/intro-js/introduction-js.md b/javascript/javascript-core/intro-js/introduction-js.md index d906b66130..d8a30b848e 100644 --- a/javascript/javascript-core/intro-js/introduction-js.md +++ b/javascript/javascript-core/intro-js/introduction-js.md @@ -14,21 +14,17 @@ category: must-know ## Content -You can think of every website as a car. +You can think of every website as a car 🚗. -The metal frame, the doors, the steering wheel: this is all HTML. +- The metal frame, the doors, the steering wheel: this is all HTML -The paint: this is CSS. +- The paint: this is CSS. -The engine, wiring, and everything under the hood: this is JavaScript. - -JavaScript is everywhere! - -Every time you refresh your Twitter feed or search for a pair of skinny jeans on Amazon, you interact with JavaScript. +- The engine, wiring, and everything under the hood: this is **JavaScript**. It's what brings the web to life! -Not only is JavaScript powerful enough to drive almost every web service you use, but it is also one of the more readable programming languages. + For example, here's code that makes sure a user is old enough to use your website: ```js @@ -38,9 +34,9 @@ if(age < 16) { } ``` +Every time you refresh your Twitter feed or search for a pair of skinny jeans on Amazon, you interact with JavaScript. - -JavaScript is essentially the language of the Web; Facebook, Google, Netflix, Microsoft, etc., all use it for one purpose or another. +It's the language of the Web; Facebook, Google, Netflix, Microsoft, etc., all use it for one purpose or another. > 🤔 What purpose will you use it for? > diff --git a/javascript/javascript-core/intro-js/why-learn-javascript.md b/javascript/javascript-core/intro-js/why-learn-javascript.md index bda5953312..dec6773a92 100644 --- a/javascript/javascript-core/intro-js/why-learn-javascript.md +++ b/javascript/javascript-core/intro-js/why-learn-javascript.md @@ -35,7 +35,7 @@ JavaScript has the largest programming community in the world[1]. Any problem yo JavaScript developers are needed by small and large companies. The average salary for Node.js[2] developers in the US is about $[106,121](https://www.glassdoor.com/Salaries/software-engineer-nodejs-salary-SRCH_KO0,24.htm). -> 💡There are over 1.8 Billion websites globally, and JavaScript is used on 95% of them. +> 💡There are over 1.8 Billion websites globally, and JavaScript is used on 95% of them. [3] --- @@ -73,7 +73,5 @@ JavaScript has been the most widely used programming language in the world for t [2: Node.js] Node.js is a tool that allows you to run JavaScript without your code being attached to an HTML file. -[!Statista_Popular_Languages](https://img.enkipro.com/21314c0f349267942234c15e076c4f85.png) +[3: Javascript Usage] > source: [Statista](https://www.statista.com/statistics/793628/worldwide-developer-survey-most-used-languages/) - -If you want to expand your skillset, Enki can help you level up in other popular skills such as [HTML/CSS](https://app.enki.com/skill/web) or [SQL](https://app.enki.com/skill/sql). From a3bac96c2c9dacb5c44545b4b65a98fcf63a33ca Mon Sep 17 00:00:00 2001 From: Lior Ben-David Date: Wed, 21 Jun 2023 13:44:19 -0400 Subject: [PATCH 4/5] Added image back --- javascript/javascript-core/intro-js/why-learn-javascript.md | 1 + 1 file changed, 1 insertion(+) diff --git a/javascript/javascript-core/intro-js/why-learn-javascript.md b/javascript/javascript-core/intro-js/why-learn-javascript.md index dec6773a92..642d337eda 100644 --- a/javascript/javascript-core/intro-js/why-learn-javascript.md +++ b/javascript/javascript-core/intro-js/why-learn-javascript.md @@ -74,4 +74,5 @@ JavaScript has been the most widely used programming language in the world for t Node.js is a tool that allows you to run JavaScript without your code being attached to an HTML file. [3: Javascript Usage] +[!Statista_Popular_Languages](https://img.enkipro.com/21314c0f349267942234c15e076c4f85.png) > source: [Statista](https://www.statista.com/statistics/793628/worldwide-developer-survey-most-used-languages/) From 9c8ee89b85eb85fd92bf191283cdd0cd3000456b Mon Sep 17 00:00:00 2001 From: Lior Ben-David Date: Wed, 21 Jun 2023 13:47:59 -0400 Subject: [PATCH 5/5] Fixed Image Markup --- javascript/javascript-core/intro-js/why-learn-javascript.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/javascript-core/intro-js/why-learn-javascript.md b/javascript/javascript-core/intro-js/why-learn-javascript.md index 642d337eda..037ff32a46 100644 --- a/javascript/javascript-core/intro-js/why-learn-javascript.md +++ b/javascript/javascript-core/intro-js/why-learn-javascript.md @@ -74,5 +74,5 @@ JavaScript has been the most widely used programming language in the world for t Node.js is a tool that allows you to run JavaScript without your code being attached to an HTML file. [3: Javascript Usage] -[!Statista_Popular_Languages](https://img.enkipro.com/21314c0f349267942234c15e076c4f85.png) +![Statista_Popular_Languages](https://img.enkipro.com/21314c0f349267942234c15e076c4f85.png) > source: [Statista](https://www.statista.com/statistics/793628/worldwide-developer-survey-most-used-languages/)