You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Introduction to Data Types](#introduction-to-data-types)
43
43
-[Number](#number)
44
44
-[String](#string)
45
45
-[Booleans](#booleans)
46
46
-[Undefined](#undefined)
47
47
-[Null](#null)
48
-
-[Checking Data types](#checking-data-types)
48
+
-[Checking Data Types](#checking-data-types)
49
49
-[Comments](#comments)
50
50
-[Variables](#variables)
51
51
-[💻 Day 1: Exercises](#%f0%9f%92%bb-day-1-exercises)
@@ -54,9 +54,9 @@
54
54
55
55
## Introduction
56
56
57
-
**Congratulations** for deciding to participate in a 30 days of JavaScript programming challenge. In this challenge you will learn everything you need to be a JavaScript programmer and in general the whole concepts of programming. In the end of the challenge you will get a 30DaysOfJavaScript programming challenge certificate. Join the [telegram group](https://t.me/ThirtyDaysOfJavaScript).
57
+
**Congratulations** for deciding to participate in 30 days of JavaScript programming challenge. In this challenge you will learn everything you need to be a JavaScript programmer, and in general, the whole concept of programming. In the end of the challenge you will get a 30DaysOfJavaScript programming challenge certificate. Join the [telegram group](https://t.me/ThirtyDaysOfJavaScript).
58
58
59
-
**A 30DaysOfJavaScript** challenge is a guide for both beginners and advanced JavaScript developers. Welcome to JavaScript. I enjoy using and teaching JavaScript and I hope you will do so. JavaScript is the language of the browser.
59
+
**A 30DaysOfJavaScript** challenge is a guide for both beginners and advanced JavaScript developers. Welcome to JavaScript. I enjoy using and teaching JavaScript and I hope you will do so too. JavaScript is the language of the web browser.
60
60
61
61
In this step by step tutorial, you will learn JavaScript, the most popular programming language in the history of mankind.
62
62
You use JavaScript **_to add interactivity to websites, to develop mobile apps, desktop applications, games_** and nowadays JavaScript can be used for **_machine learning_** and **_AI_**.
@@ -88,14 +88,14 @@ After downloading double click and install
88
88
89
89

90
90
91
-
We can check if node is installed in our local machine by opening our device terminal or command prompt.
91
+
We can check if node is installed on our local machine by opening our device terminal or command prompt.
92
92
93
93
```sh
94
94
asabeneh $ node -v
95
95
v12.14.0
96
96
```
97
97
98
-
I am using node version 12.14.0, which is the recommended version of node.
98
+
When making this tutorial I was using node version 12.14.0, but now the recommended version of node.js for download is 12.17.0.
99
99
100
100
### Browser
101
101
@@ -109,18 +109,18 @@ Install [google chrome](https://www.google.com/chrome/) if you do not have one y
109
109
110
110
#### Opening Google Chrome Console
111
111
112
-
You can open Google Chrome either by clicking three dots at the top right corner of the Chrome browseror using a shortcut. I prefer using shortcuts.
112
+
You can open Google Chrome console either by clicking three dots at the top right corner of the browser, selecting _More tools -> Developer tools_or using a keyboard shortcut. I prefer using shortcuts.
@@ -130,7 +130,7 @@ Let us write a JavaScript code on the Google Chrome console:
130
130
131
131

132
132
133
-
#### Writing Code on browser Console
133
+
#### Writing Code on Browser Console
134
134
135
135
We can write any JavaScript code on the Google console or any browser console. However, for this challenge, we only focus on Google Chrome console. Open the console using:
136
136
@@ -144,13 +144,13 @@ Ctl+Shift+I
144
144
145
145
##### Console.log
146
146
147
-
To write our first JavaScript code, we used a builtin function **console.log()**. We passed an argument as input data, and the function displays the output. We passed 'Hello, World' as input data or argument in the console.log() function.
147
+
To write our first JavaScript code, we used a built-in function **console.log()**. We passed an argument as input data, and the function displays the output. We passed 'Hello, World' as input data or argument in the console.log() function.
148
148
149
149
```js
150
150
console.log('Hello, World!')
151
151
```
152
152
153
-
##### Console.log with multiple arguments
153
+
##### Console.log with Multiple Arguments
154
154
155
155
The console.log(param1, param2, param3), can take multiple arguments.
As you can see from the above snippet code, *console.log()* can take multiple arguments.
165
+
As you can see from the snippet code above, *console.log()* can take multiple arguments.
166
166
167
167
Congratulations! You wrote your first JavaScript code using *console.log()*.
168
168
169
169
##### Comment
170
170
171
-
We add comments to our code. Comments are very important to make code more readable and to leave remarks in our code. JavaScript does not execute the comment part of our code. Any text starts with // in JavaScript is a comment or anything enclose like this /**/ is a comment.
171
+
We add comments to our code. Comments are very important to make code more readable and to leave remarks in our code. JavaScript does not execute the comment part of our code. Any text line starting with // in JavaScript is a comment or anything enclosed like this /**/ is a comment.
172
172
173
173
**Example: Single Line Comment**
174
174
@@ -197,7 +197,7 @@ console.log("Hello, World!")
197
197
console.log('Hello, World!')
198
198
```
199
199
200
-
So far, we saw how to display text using a *console.log()*. If we are printing text or string using *console.log()*, the text has to be under the single, double, or backtick.
200
+
So far, we saw how to display text using a *console.log()*. If we are printing text or string using *console.log()*, the text has to be under the single quote, double quote, or a backtick quote.
We can write our codes on the browser console, but it won't be for bigger projects. In a real working environment, developers use different code editors to write their codes. In this 30 days python JavaScript challenge, we will use visual studio code.
227
+
We can write our codes on the browser console, but it won't do for bigger projects. In a real working environment, developers use different code editors to write their codes. In this 30 days python JavaScript challenge, we will use Visual Studio Code.
228
228
229
229
#### Installing Visual Studio Code
230
230
231
-
VVisual studio code is a very popular open-source text editor. I would recommend to [download](https://code.visualstudio.com/) visual studio code, but if you are in favor of other editors, feel free to follow with what you have.
231
+
VVisual studio code is a very popular open-source text editor. I would recommend to [download Visual Studio Code](https://code.visualstudio.com/), but if you are in favor of other editors, feel free to follow with what you have.
232
232
233
233

234
234
235
-
If you installed visual studio code, let us start using it.
235
+
If you installed Visual Studio Code, let us start using it.
236
236
237
-
#### How to use visual studio code
237
+
#### How to Use Visual Studio Code
238
238
239
-
Open the visual studio code by double-clicking the visual studio icon. When you open it, you will get this kind of interface. Try to interact with the labeled icons.
239
+
Open the Visual Studio Code by double-clicking its icon. When you open it, you will get this kind of interface. Try to interact with the labeled icons.
240
240
241
241

242
242
@@ -246,11 +246,13 @@ Open the visual studio code by double-clicking the visual studio icon. When you
246
246
247
247

248
248
249
+

0 commit comments