Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to JavaScript/Intro-js #3231

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
23 changes: 16 additions & 7 deletions javascript/javascript-core/intro-js/introduction-js.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,29 @@ category: must-know

## Content

JavaScript is Everywhere!
You can think of every website as a car 🚗.

Every time you refresh your Twitter feed or search for a pair of skinny jeans on Amazon, you interact with JavaScript.
- 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**.

It's what brings the web to life!

For instance, the following code shows an alert that you might be familiar with 👖:


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)

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?
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ x
y
```

is understod as:
is understood as:

```js
x;
Expand Down
12 changes: 7 additions & 5 deletions javascript/javascript-core/intro-js/why-learn-javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ 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.
> 💡There are over 1.8 Billion websites globally, and JavaScript is used on 95% of them. [3]


---
Expand Down Expand Up @@ -70,7 +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.

[!Statista_Popular_Languages](https://img.enkipro.com/21314c0f349267942234c15e076c4f85.png)
> source: [Statista](https://www.statista.com/statistics/793628/worldwide-developer-survey-most-used-languages/)
[2: Node.js]
Node.js is a tool that allows you to run JavaScript without your code being attached to an HTML file.

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).
[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/)