Skip to content

Commit 9e5cf32

Browse files
committed
some fixes
1 parent 6b494b7 commit 9e5cf32

8 files changed

Lines changed: 19 additions & 16 deletions

images/day-1.png

-127 KB
Binary file not shown.

images/day_1.png

189 KB
Loading

images/google-chrome.png

-417 KB
Binary file not shown.

images/google_chrome.png

167 KB
Loading
-282 KB
Loading
-285 KB
Loading

images/opening_developer_tool.png

-256 KB
Loading

readMe.md

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
# Introduction
4141
**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).
4242

43-
**A 30DaysOfJavaScript** is a guide for both beginners and advanced JavaScript developers. Welcome to JavaScript. JavaScript is the language of the browser.
43+
**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.
4444

4545
In this step by step tutorial, you will learn JavaScript, the most popular programming language in the history of mankind.
4646
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_**.
@@ -56,7 +56,7 @@ No prior knowledge of programming is required to follow this challenge. You need
5656
5. Code Editor
5757

5858
# Setup
59-
I believe you have the motivation, computer and internet.
59+
I believe you have the motivation and a strong desire to be a developer, computer and internet. If you have those you have everything.
6060

6161
## Install Node.js
6262
You may not need it right now but you may need it for later. Install [node.js](https://nodejs.org/en/).
@@ -67,7 +67,7 @@ After downloading double click and install
6767

6868
![Install node](images/install_node.png)
6969

70-
We can check if node is installed in our machine by opening our device terminal or command prompt.
70+
We can check if node is installed in our local machine by opening our device terminal or command prompt.
7171

7272
```sh
7373
asabeneh $ node -v
@@ -78,9 +78,12 @@ I am using node version 12.14.0 which is the recommended version of node.
7878
## Browser
7979
There are many browsers out there but I strongly recommend Google Chrome.
8080
### Installing Google Chrome
81-
Install [google chrome](https://www.google.com/chrome/) if you do not have one yet. We can write small JavaScript code on the browser console but we can not use the browser console to develop applications.
81+
Install [google chrome](https://www.google.com/chrome/) if you do not have one yet. We can write small JavaScript code on the browser console but we do not use the browser console to develop applications.
82+
83+
![Google Chrome](images/google_chrome.png)
84+
8285
### Opening Google Chrome Console
83-
You can open the google chrome either by clicking three dots at the top right corner of chrome or using short cut. I prefer short cuts.
86+
You can open the google chrome either by clicking three dots at the top right corner of chrome browser or using a shortcut. I prefer using shortcuts.
8487
![Opening chrome](images/opening_developer_tool.png)
8588

8689

@@ -109,7 +112,7 @@ Windows:
109112
Ctl+Shift+I
110113
```
111114
#### Console.log
112-
To write our first JavaScript code we used a builtin function **console.log()**. We passed an argument as an input data and the function display the output. We passed 'Hello, World' as input data or argument in the condole.log() function.
115+
To write our first JavaScript code we used a builtin function **console.log()**. We passed an argument as an input data and the function display the output. We passed 'Hello, World' as input data or argument in the console.log() function.
113116
```js
114117
console.log('Hello, World!')
115118
```
@@ -256,7 +259,7 @@ This is how we write internal script most of the time. Writing the JavaScript co
256259
</html>
257260
```
258261
Open the browser console to see the out put from the console.log()
259-
![js code from vscode](./imas/js_code_ve)
262+
![js code from vscode](./images/js_code_vscode.png)
260263

261264
## External script
262265
Similar to the internal script, the external script link can be on the header or body but it is preferred to put it in the body.
@@ -295,7 +298,7 @@ External Script in the body
295298
Open the browser console to see the out put from the console.log()
296299
## Multiple External scripts
297300
We can link multiple external JavaScript files to a web page.
298-
Create helloword.js file inside 30DaysOfJS folder and write the following code
301+
Create helloworld.js file inside 30DaysOfJS folder and write the following code
299302
```js
300303
console.log('Hello, World!')
301304
```
@@ -312,7 +315,7 @@ console.log('Hello, World!')
312315
</body
313316
</html
314317
```
315-
You main.js file should be below all other scripts. Watch out your exercise needs to understand this line.
318+
Your main.js file should be below all other scripts. Watch out your exercise needs to understand this line.
316319
![Multiple Script](./images/multiple_script.png)
317320

318321
# Introduction to Data types
@@ -347,7 +350,7 @@ A boolean data type is either a True or False value.
347350
**Example:**
348351

349352
```js
350-
true # if the light on ,the value is true
353+
true # if the light on ,the value is true
351354
false # if the light off, the value is False
352355
```
353356

@@ -364,7 +367,7 @@ Null in JavaScript means an empty value.
364367
365368
## Checking Data types
366369
367-
To check the data type of a certain data type we use the **typeOf** operator. See the following example.
370+
To check the data type of a certain data type we use the **typeof** operator. See the following example.
368371
```js
369372
console.log(typeof 'Asabeneh') // string
370373
console.log(typeof 5) // number
@@ -395,13 +398,13 @@ Multiline commenting:
395398
```
396399
397400
# Variables
398-
Variables are _containers_ of data. Variables _store_ data in a memory location. When a variable is declared a memory location is reserved and when it is assigned to a value, the memory space will be filled with that data. To declare a variable we use, _var_, _let_ or _const_ key words. I will talk about var, let and const in detail in other section(scope). For now, the above explanation is enough.
401+
Variables are _containers_ of data. Variables _store_ data in a memory location. When a variable is declared a memory location is reserved and when it is assigned to a value, the memory space will be filled with that data. To declare a variable we use, _var_, _let_ or _const_ keywords. I will talk about var, let and const in detail in other section(scope). For now, the above explanation is enough.
399402
400403
For a variable which changes at different time we use _let_ but if the data doesn't change at all we use _const_. For example PI, country name, gravity do no change and we can use *const*.
401404

402405
A JavaScript variable name shouldn't begin with a number
403406
A JavaScript variable name does not allow special characters except dollar sign and underscore.
404-
A JavaScript variable name follow a camelCase convention.
407+
A JavaScript variable name follows a camelCase convention.
405408
A JavaScript variable name shouldn't have space between words. The following are valid examples of JavaScript variables.
406409

407410
Valid variables in JavaScript:
@@ -423,8 +426,8 @@ Valid variables in JavaScript:
423426
num_1
424427
_num_1
425428
$num1
426-
year2019
427-
year_2019
429+
year2020
430+
year_2020
428431
```
429432
Camel case or the first way of declaring is conventional in JavaScript. In this material, camelCase variables will be used.
430433

@@ -456,7 +459,7 @@ let name = 'Asabeneh', //name of a person
456459
console.log(name, job, live);
457460
```
458461
When you run the files on 01-Day folder you should get this:
459-
![Day one](./images/day-1.png)
462+
![Day one](./images/day_1.png)
460463

461464

462465
# 💻 Day 1: Exercises

0 commit comments

Comments
 (0)