Skip to content

New pull request #1

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

Merged
merged 217 commits into from
Jan 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
217 commits
Select commit Hold shift + click to select a range
8d98f73
paypal link has been added
Asabeneh Jan 25, 2021
07143be
paypal link has been added
Asabeneh Jan 26, 2021
273fdb8
Grammar Correction
codenrich Jan 27, 2021
b430af0
Merge pull request #1 from codenrich/codenrich-grammarSpanish-1
codenrich Jan 27, 2021
b094b3f
fixes
Asabeneh Nov 17, 2021
97f84bf
corrections
Asabeneh Nov 17, 2021
7fea1ed
Fixed a typo in the line 183 (RU)
MatinSasan Feb 26, 2022
a4dd61b
Update korean README.md
poiu694 Mar 4, 2022
e20d6e4
testimonial link added
Asabeneh Mar 5, 2022
ef014b8
some changes
Asabeneh Mar 5, 2022
e14526c
Merge pull request #282 from poiu694/master
Asabeneh Mar 5, 2022
6fbdea2
Korian Day 1 has been added
Asabeneh Mar 5, 2022
9fc1c2a
Merge pull request #276 from MatinSasan/patch-1
Asabeneh Mar 5, 2022
1bd41df
Merge pull request #144 from codenrich/master
Asabeneh Mar 5, 2022
7ccf2de
some fixes
Asabeneh Mar 5, 2022
d63dc55
Merge branch 'master' of https://github.com/Asabeneh/30DaysOfJavaScript
Asabeneh Mar 5, 2022
56130ef
some corrections
Asabeneh Mar 6, 2022
8c993f7
Vietnamese translation
datlechin Mar 7, 2022
0c4a867
update
datlechin Mar 7, 2022
fbdc0aa
update
datlechin Mar 7, 2022
7986298
update
datlechin Mar 7, 2022
917e8fd
update
datlechin Mar 7, 2022
0853416
Merge pull request #284 from datlechin/master
Asabeneh Mar 7, 2022
ae69b6e
Vietnamese translation added
Asabeneh Mar 7, 2022
6e54dc8
Day 1 `done`
datlechin Mar 8, 2022
87266b7
Vietnamese translation
datlechin Mar 8, 2022
e57c825
Merge branch 'Asabeneh:master' into master
datlechin Mar 8, 2022
3ca1a9f
Merge pull request #285 from datlechin/master
Asabeneh Mar 8, 2022
3dbcb1f
Create dia_02_tipos_de_datos.md
luisadrianpuga Mar 8, 2022
d4746d3
Merge pull request #286 from luisadrianpuga/patch-1
Asabeneh Mar 8, 2022
26af1a2
Fix merge conflict
Mar 8, 2022
1979091
Merge pull request #287 from Bakhtiyar-Garashov/master
Asabeneh Mar 8, 2022
7b9b786
vietnamese day2 translation
datlechin Mar 14, 2022
a10e078
Merge pull request #291 from datlechin/master
Asabeneh Mar 14, 2022
dc7d56b
typo error has been fixed and flag has been added 🔥
Milan-960 Mar 20, 2022
5f95530
typo error has been fixed and flag and Polish lang 🔥
Milan-960 Mar 20, 2022
46b4d9b
typo error has been fixed and flag and Polish lang 🔥
Milan-960 Mar 20, 2022
a22baed
Merge pull request #294 from Milan-960/master
Asabeneh Mar 26, 2022
47ae977
Created Turkish translation
YusufAgca Apr 13, 2022
895f7ea
Merge pull request #316 from YusufAgca/master
Asabeneh Apr 13, 2022
95b8056
Added Turkish link in the main readMe.md
YusufAgca Apr 13, 2022
0f4a2b6
Merge pull request #317 from YusufAgca/master
Asabeneh Apr 15, 2022
faace4f
typo fixes and some minor corrections
Asabeneh Apr 16, 2022
153a57b
link added
Asabeneh Apr 16, 2022
0d064ad
typo fix
Asabeneh Apr 16, 2022
8b4f5a7
minor correction
Asabeneh Apr 16, 2022
62af0d2
Create 02_day_data_types Turkish
thealiyasar May 12, 2022
9504d35
Merge pull request #340 from thealiyasar/master
Asabeneh May 24, 2022
8cf986f
Update 02_day_data_types.md
thealiyasar May 29, 2022
2a87b59
Create 03_booleans_operators_date.md
thealiyasar May 30, 2022
2d2baae
Merge pull request #350 from thealiyasar/master
Asabeneh Jun 2, 2022
caa748b
Update 03_booleans_operators_date.md
thealiyasar Jun 2, 2022
48e7e2c
Create 04_day_conditionals.md
thealiyasar Jun 4, 2022
e5b1542
Merge pull request #355 from thealiyasar/master
Asabeneh Jun 5, 2022
bd3d962
Added Day 1-7 Italian language support
CampaniaGuy Jun 12, 2022
a63597b
Merge pull request #365 from CampaniaGuy/master
Asabeneh Jun 12, 2022
026a7cf
Added Day 8-14 Italian language support
CampaniaGuy Jun 20, 2022
646c778
Merge pull request #378 from CampaniaGuy/master
Asabeneh Jun 20, 2022
09b1937
Added Day 15-30 Italian language support
CampaniaGuy Jun 23, 2022
ec08245
Merge pull request #384 from CampaniaGuy/master
Asabeneh Jun 24, 2022
f88921b
Day 5 translated to turkish
Kadiralpcil Jul 9, 2022
3c992f4
spelling updated
Kadiralpcil Jul 9, 2022
1768d43
Merge pull request #399 from Kadiralpcil/master
Asabeneh Jul 11, 2022
9c94eb5
Translate 06_day_loops to Turkish
Jul 24, 2022
56eb2f1
Add links for paragraph
Jul 24, 2022
6db0f3d
Change image path
Jul 24, 2022
5e715f6
day 6 translated to Turkish
hsynalv Jul 24, 2022
8691736
redirect bug fixed
hsynalv Jul 24, 2022
9533bdb
Merge pull request #415 from hsynalv/master
Asabeneh Jul 24, 2022
596599f
day 7 translated to Turkish
hsynalv Jul 24, 2022
b03ff29
Merge branch 'Asabeneh:master' into master
yigittosun Jul 25, 2022
e4af287
Merge pull request #416 from hsynalv/master
Asabeneh Jul 25, 2022
cd12659
day 7 grammer bugs fixed.
hsynalv Jul 25, 2022
5bc9ef9
day 6 redirect reference bug fixed
hsynalv Jul 25, 2022
0e38ae4
day 7 redirect reference bug fixed
hsynalv Jul 25, 2022
cd246e9
Translate 18_day_promises to Turkish
Jul 28, 2022
4e3d963
Merge branch 'Asabeneh:master' into master
yigittosun Jul 28, 2022
2e4084b
Change title name
Jul 28, 2022
55728e2
Delete 06_day_loops.md
yigittosun Jul 28, 2022
654512b
day 8 translated to Turkish
hsynalv Jul 29, 2022
4e73681
Merge pull request #422 from yigittosun/master
Asabeneh Jul 30, 2022
f0f1e66
Merge pull request #423 from hsynalv/master
Asabeneh Jul 30, 2022
dfc09e0
Translate 19_Day_Closures to Turkish
yigittosun Aug 8, 2022
476158a
Merge pull request #444 from yigittosun/master
Asabeneh Aug 12, 2022
523719a
Translate 20_Day_Writing_Clean_Code document to Turkish
yigittosun Aug 18, 2022
d8c5703
Edit back page link anf file name on 20th day
yigittosun Aug 18, 2022
2014f6d
Edit file name in 20th Day
yigittosun Aug 18, 2022
1201626
Fix page link bug on 20th page
yigittosun Aug 18, 2022
69e899b
Edit 20th page router link in 19th page
yigittosun Aug 18, 2022
7eca5b8
Delete 20_Day_Writing_clean_codes.md
yigittosun Aug 18, 2022
6ffb5ea
Add 20_Day_writing_clean_code file on project
yigittosun Aug 18, 2022
4ab3bac
Merge pull request #452 from yigittosun/master
Asabeneh Aug 18, 2022
b19cb7d
Spanish translation day 3 of 30
EmmanuelArenas Aug 22, 2022
13a5ee2
Spanish translation day 4 of 30
EmmanuelArenas Aug 23, 2022
5ac7663
Translate 17_day_web_stroges to Turkish
yigittosun Aug 24, 2022
7782c52
Merge pull request #468 from yigittosun/master
Asabeneh Aug 24, 2022
1c490c2
Spanish translation day 5 of 30
EmmanuelArenas Aug 26, 2022
4e5ccf5
Merge pull request #458 from EmmanuelArenas/spanish-translation
Asabeneh Aug 26, 2022
2df4042
Spanish translation day 6 of 30
EmmanuelArenas Aug 26, 2022
64617ad
Spanish translation day 7 of 30
EmmanuelArenas Sep 1, 2022
97087bc
Translate 16_day_JSON to Turkish
yigittosun Sep 1, 2022
e71779f
Merge pull request #490 from EmmanuelArenas/spanish-translation
Asabeneh Sep 1, 2022
1e68a81
Merge pull request #491 from yigittosun/master
Asabeneh Sep 1, 2022
3c7ac9b
Spanish translation day 8 of 30
EmmanuelArenas Sep 4, 2022
dc558dd
Spanish translation day 9 of 30
EmmanuelArenas Sep 5, 2022
270b352
Merge pull request #495 from EmmanuelArenas/spanish-translation
Asabeneh Sep 5, 2022
d880c53
Spanish translation day 10 of 30
EmmanuelArenas Sep 9, 2022
790bc7f
Spanish translation day 11 of 30
EmmanuelArenas Sep 9, 2022
0b926bb
Merge pull request #500 from EmmanuelArenas/spanish-translation
Asabeneh Sep 9, 2022
1ab1f3e
Spanish translation day 12 of 30
EmmanuelArenas Sep 9, 2022
e9ea627
Spanish translation day 13 of 30
EmmanuelArenas Sep 10, 2022
752e513
Spanish translation day 14 of 30
EmmanuelArenas Sep 10, 2022
fb18dc6
Merge pull request #507 from EmmanuelArenas/spanish-translation
Asabeneh Sep 14, 2022
b7574bd
Spanish translation day 15 of 30
EmmanuelArenas Sep 19, 2022
a2c3ab6
Spanish translation day 16 of 30
EmmanuelArenas Sep 19, 2022
f6e2e5d
Spanish translation day 17 of 30
EmmanuelArenas Sep 19, 2022
e2587d1
Merge pull request #510 from EmmanuelArenas/spanish-translation
Asabeneh Sep 19, 2022
31a0721
Spanish translation day 18 of 30
EmmanuelArenas Sep 26, 2022
44e4782
Spanish translation day 19 of 30
EmmanuelArenas Sep 26, 2022
debd7b2
Spanish translation day 20 of 30
EmmanuelArenas Sep 26, 2022
112cb41
Translate 15_Day_Classes to Turkish
yigittosun Sep 26, 2022
852a72f
Fix image path in header
yigittosun Sep 26, 2022
6e4332d
Translate '14_day_error_handling' to Turkish
yigittosun Sep 29, 2022
95cfb3c
Delete 14_day_error_handling.md
yigittosun Sep 29, 2022
1df4102
Translate '14_day_error_handling' to Turkish
yigittosun Sep 29, 2022
ee36501
Recover deleted 14_day_Error_Handling file
yigittosun Sep 29, 2022
348fac4
Merge pull request #515 from yigittosun/master
Asabeneh Sep 29, 2022
cf35af9
Merge pull request #516 from EmmanuelArenas/spanish-translation
Asabeneh Sep 29, 2022
c222666
Spanish translation day 21 of 30
EmmanuelArenas Oct 2, 2022
424fc69
Spanish translation day 22 of 30
EmmanuelArenas Oct 3, 2022
31af27e
Spanish translation day 23 of 30
EmmanuelArenas Oct 3, 2022
3e22511
Spanish translation day 24 of 30
EmmanuelArenas Oct 3, 2022
40cf1f1
Spanish translation day 25 of 30
EmmanuelArenas Oct 3, 2022
51d96f2
Spanish translation day 26 of 30
EmmanuelArenas Oct 3, 2022
bfc07fb
Spanish translation day 27 of 30
EmmanuelArenas Oct 3, 2022
f69c0f5
Spanish translation day 28 of 30
EmmanuelArenas Oct 3, 2022
19ddac4
Spanish translation day 29 of 30
EmmanuelArenas Oct 3, 2022
0f47b7c
Spanish translation day 30 of 30
EmmanuelArenas Oct 3, 2022
de038c3
Correction of days
EmmanuelArenas Oct 3, 2022
1c0ea78
Merge pull request #521 from EmmanuelArenas/spanish-translation
Asabeneh Oct 3, 2022
37b3a1a
Create 03_booleans_operators_date.md
Zearf Oct 19, 2022
fc9719c
Update 03_booleans_operators_date.md
Zearf Oct 19, 2022
01f3b50
portuguese translation
Dikendev Oct 25, 2022
d10932c
portuguese translation
Dikendev Oct 25, 2022
ee7527e
Portuguese Translation
Dikendev Oct 26, 2022
f2e35f8
Portugese translation
Dikendev Oct 27, 2022
bef67f0
Merge pull request #544 from Dikendev/master
Asabeneh Oct 27, 2022
2d6561c
added Portuguese language link to main readme and portuguese translation
Dikendev Oct 28, 2022
30496ad
fixed img and links, portugueses translation
Dikendev Oct 29, 2022
c24de4c
Merge pull request #547 from Dikendev/master
Asabeneh Oct 30, 2022
2bd214e
day 1 portuguese translation
Dikendev Nov 1, 2022
298bc56
Merge pull request #548 from Dikendev/master
Asabeneh Nov 1, 2022
0351585
day 2 portuguese translation
Dikendev Nov 9, 2022
f5a9be5
fix mistakes and typos in day 2 russian localization
3JlOy-PYCCKUi Nov 11, 2022
6071846
fix mistakes and typos in day 1 russian localization
3JlOy-PYCCKUi Nov 11, 2022
ef20617
fix mistakes and typos in day 3 russian localization
3JlOy-PYCCKUi Nov 11, 2022
0053893
Merge pull request #571 from 3JlOy-PYCCKUi/ru-day3
Asabeneh Nov 12, 2022
290acc8
Merge pull request #569 from 3JlOy-PYCCKUi/master
Asabeneh Nov 12, 2022
a803660
Merge pull request #570 from 3JlOy-PYCCKUi/ru-day1
Asabeneh Nov 12, 2022
76cf378
Merge branch 'Asabeneh:master' into master
Dikendev Nov 12, 2022
d560f17
day 2 portuguese translation
Dikendev Nov 17, 2022
ab79c64
day 9 translated
hsynalv Nov 22, 2022
e2cd117
.
hsynalv Nov 22, 2022
47051ab
day 2 portuguese translation
Dikendev Nov 22, 2022
367bc34
Merge pull request #588 from Dikendev/master
Asabeneh Nov 22, 2022
26562ad
Merge pull request #586 from hsynalv/master
Asabeneh Nov 22, 2022
0492b9d
Day 10 Translate into Turkish
guvenkarabulut Nov 28, 2022
55fcc97
Update 10_day_Sets_and_Maps.md
guvenkarabulut Nov 28, 2022
6b52d6e
Update 10_day_Sets_and_Maps.md
guvenkarabulut Nov 28, 2022
7ca2f84
Day 10 Translate to Turkish
guvenkarabulut Nov 28, 2022
464c456
Update 10_day_Sets_and_Maps.md
guvenkarabulut Nov 28, 2022
b8a7179
Day 10 translated to Turkish
guvenkarabulut Nov 28, 2022
643f3c4
Merge pull request #597 from guven07/day10-translate-turkish
Asabeneh Nov 28, 2022
4ab1968
Copy from 01_Day_introduction to Portuguese folder
lucas-mch Dec 1, 2022
c09bdd9
Portuguese translantion for 01_Day_introduction
lucas-mch Dec 1, 2022
f3699f6
Portuguese translation 01_Day_introduction
lucas-mch Dec 1, 2022
ecf5618
Update 02_day_data_types.md
fraltnn Dec 2, 2022
912bcfc
Merge pull request #602 from fraltnn/patch-1
Asabeneh Dec 3, 2022
eb66f6b
Merge pull request #598 from lucas-mch/master
Asabeneh Dec 3, 2022
3f31ef2
fix mistakes and typos in day 3 russian localization
fraltnn Dec 3, 2022
267a931
typos day 2 russian localization
fraltnn Dec 3, 2022
9535eb9
fix mistakes in day 4 russian localization
fraltnn Dec 4, 2022
112ab39
Update 04_day_conditionals.md
fraltnn Dec 4, 2022
ee1414c
Update 04_day_conditionals.md
fraltnn Dec 4, 2022
437ff29
Update 04_day_conditionals.md
fraltnn Dec 4, 2022
c2b3324
Merge pull request #606 from fraltnn/patch-4
Asabeneh Dec 8, 2022
a4a9f7f
Day 11 sucsefully translated to Turkish
guvenkarabulut Dec 9, 2022
5a6fc05
Merge branch 'Asabeneh:master' into day-11-translated-to-turkish
guvenkarabulut Dec 9, 2022
5a06eee
Merge pull request #611 from guvenkarabulut/day-11-translated-to-turkish
Asabeneh Dec 11, 2022
f03fdcd
Merge pull request #605 from fraltnn/patch-3
Asabeneh Dec 11, 2022
33cf6c0
Merge pull request #604 from fraltnn/patch-2
Asabeneh Dec 11, 2022
5aed1a7
added turkish language translation for day 21
alicangunduz Jan 11, 2023
41cc836
Merge pull request #640 from alicangunduz/master
Asabeneh Jan 14, 2023
55e8e61
addition of day 22
alicangunduz Jan 14, 2023
8430e9f
Merge pull request #643 from alicangunduz/master
Asabeneh Jan 15, 2023
30eb64c
update RU 1 day readme.md
iampopovich Jan 21, 2023
ffd79e2
Merge pull request #651 from iampopovich/patch-1
Asabeneh Jan 22, 2023
bffe399
Portuguese Day 2 translation
Dikendev Feb 1, 2023
54d1b87
Portuguese translation Day 2
Dikendev Feb 1, 2023
e68b826
added day 3 translation and fixed folder names in portuguese
Dikendev Feb 4, 2023
4f06258
fixed link pages
Dikendev Feb 4, 2023
8b9f895
better variable names in portuguese variables
Dikendev Feb 4, 2023
106f90f
Update 03_booleans_operators_date.md
Zearf Feb 6, 2023
7644463
Vietnamese day 3 translation
Zearf Feb 19, 2023
2938cc3
Merge pull request #664 from Dikendev/master
Asabeneh Feb 22, 2023
7fc6e87
Merge pull request #698 from Zearf/master
Asabeneh Feb 22, 2023
3856d15
Added 23-30 day
alicangunduz Mar 25, 2023
e3ade56
make some improvements
ubsoydan Mar 29, 2023
8f4024e
make some improvements
ubsoydan Mar 29, 2023
0d1cc30
Merge pull request #1 from ubsoydan/main
alicangunduz Mar 29, 2023
b2e022e
Update 30_day_mini_project_final.md
alicangunduz Mar 29, 2023
96397eb
Merge pull request #730 from alicangunduz/master
Asabeneh Apr 2, 2023
65e85f6
links has been added
Asabeneh Apr 2, 2023
dba581a
"update french readme "
Os-humble-man Jun 5, 2023
2ed27d8
"Update readMe"
Os-humble-man Jun 6, 2023
b817f98
"Update readme"
Os-humble-man Jun 6, 2023
55d8e3d
Merge pull request #775 from Os-humble-man/french-translation
Asabeneh Jun 8, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 9 additions & 9 deletions 01_Day_Introduction/01_day_starter/index.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<!DOCTYPE html>
<html>
<html lang="en">

<head>
<title>30DaysOfJavaScript</title>
<title>30DaysOfJavaScript</title>
</head>

<body>
<h1>30DaysOfJavaScript:03 Day</h1>
<h2>Introduction</h2>
<button onclick="alert('Welcome to 30DaysOfJavaScript!');">Click Me</button>
<script src="./helloworld.js"></script>
<script src="./introduction.js"></script>
<script src="./varaible.js"></script>
<script src="./main.js"></script>
<h1>30DaysOfJavaScript:03 Day</h1>
<h2>Introduction</h2>
<button onclick="alert('Welcome to 30DaysOfJavaScript!');">Click Me</button>
<script src="./helloworld.js"></script>
<script src="./introduction.js"></script>
<script src="./variable.js"></script>
<script src="./main.js"></script>

</body>

Expand Down
58 changes: 31 additions & 27 deletions 02_Day_Data_types/02_day_data_types.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,30 +19,30 @@
![Thirty Days Of JavaScript](../images/banners/day_1_2.png)

- [📔 Day 2](#-day-2)
- [Data Types](#data-types)
- [Primitive Data Types](#primitive-data-types)
- [Non-Primitive Data Types](#non-primitive-data-types)
- [Numbers](#numbers)
- [Declaring Number Data Types](#declaring-number-data-types)
- [Math Object](#math-object)
- [Random Number Generator](#random-number-generator)
- [Strings](#strings)
- [String Concatenation](#string-concatenation)
- [Concatenating Using Addition Operator](#concatenating-using-addition-operator)
- [Long Literal Strings](#long-literal-strings)
- [Escape Sequences in Strings](#escape-sequences-in-strings)
- [Template Literals (Template Strings)](#template-literals-template-strings)
- [String Methods](#string-methods)
- [Checking Data Types and Casting](#checking-data-types-and-casting)
- [Checking Data Types](#checking-data-types)
- [Changing Data Type (Casting)](#changing-data-type-casting)
- [String to Int](#string-to-int)
- [String to Float](#string-to-float)
- [Float to Int](#float-to-int)
- [💻 Day 2: Exercises](#-day-2-exercises)
- [Exercise: Level 1](#exercise-level-1)
- [Exercise: Level 2](#exercise-level-2)
- [Exercises: Level 3](#exercises-level-3)
- [Data Types](#data-types)
- [Primitive Data Types](#primitive-data-types)
- [Non-Primitive Data Types](#non-primitive-data-types)
- [Numbers](#numbers)
- [Declaring Number Data Types](#declaring-number-data-types)
- [Math Object](#math-object)
- [Random Number Generator](#random-number-generator)
- [Strings](#strings)
- [String Concatenation](#string-concatenation)
- [Concatenating Using Addition Operator](#concatenating-using-addition-operator)
- [Long Literal Strings](#long-literal-strings)
- [Escape Sequences in Strings](#escape-sequences-in-strings)
- [Template Literals (Template Strings)](#template-literals-template-strings)
- [String Methods](#string-methods)
- [Checking Data Types and Casting](#checking-data-types-and-casting)
- [Checking Data Types](#checking-data-types)
- [Changing Data Type (Casting)](#changing-data-type-casting)
- [String to Int](#string-to-int)
- [String to Float](#string-to-float)
- [Float to Int](#float-to-int)
- [💻 Day 2: Exercises](#-day-2-exercises)
- [Exercise: Level 1](#exercise-level-1)
- [Exercise: Level 2](#exercise-level-2)
- [Exercises: Level 3](#exercises-level-3)

# 📔 Day 2

Expand All @@ -62,12 +62,12 @@ Primitive data types in JavaScript include:
3. Booleans - true or false value
4. Null - empty value or no value
5. Undefined - a declared variable without a value
6. Symbol - A unique value that can be generated by Symbol constructor

Non-primitive data types in JavaScript includes:

1. Objects
2. Functions
3. Arrays
2. Arrays

Now, let us see what exactly primitive and non-primitive data types mean.
*Primitive* data types are immutable(non-modifiable) data types. Once a primitive data type is created we cannot modify it.
Expand Down Expand Up @@ -231,6 +231,10 @@ console.log(Math.E) // 2.718
console.log(Math.log(2)) // 0.6931471805599453
console.log(Math.log(10)) // 2.302585092994046

// Returns the natural logarithm of 2 and 10 respectively
console.log(Math.LN2) // 0.6931471805599453
console.log(Math.LN10) // 2.302585092994046

// Trigonometry
Math.sin(0)
Math.sin(60)
Expand Down Expand Up @@ -876,7 +880,7 @@ console.log(numFloat) // 9.81
let num = '9.81'
let numFloat = +num

console.log(numInt) // 9.81
console.log(numFloat) // 9.81
```

#### Float to Int
Expand Down
2 changes: 1 addition & 1 deletion 02_Day_Data_types/02_day_starter/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">

<head>
<title>30DaysOfJavaScript</title>
Expand Down
2 changes: 1 addition & 1 deletion 02_Day_Data_types/string_methods/match.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion 02_Day_Data_types/string_methods/split.js
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
86 changes: 43 additions & 43 deletions 03_Day_Booleans_operators_date/03_booleans_operators_date.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,38 +18,38 @@
![Thirty Days Of JavaScript](../images/banners/day_1_3.png)

- [📔 Day 3](#-day-3)
- [Booleans](#booleans)
- [Truthy values](#truthy-values)
- [Falsy values](#falsy-values)
- [Undefined](#undefined)
- [Null](#null)
- [Operators](#operators)
- [Assignment operators](#assignment-operators)
- [Arithmetic Operators](#arithmetic-operators)
- [Comparison Operators](#comparison-operators)
- [Logical Operators](#logical-operators)
- [Increment Operator](#increment-operator)
- [Decrement Operator](#decrement-operator)
- [Ternary Operators](#ternary-operators)
- [Operator Precendence](#operator-precendence)
- [Window Methods](#window-methods)
- [Window alert() method](#window-alert-method)
- [Window prompt() method](#window-prompt-method)
- [Window confirm() method](#window-confirm-method)
- [Date Object](#date-object)
- [Creating a time object](#creating-a-time-object)
- [Getting full year](#getting-full-year)
- [Getting month](#getting-month)
- [Getting date](#getting-date)
- [Getting day](#getting-day)
- [Getting hours](#getting-hours)
- [Getting minutes](#getting-minutes)
- [Getting seconds](#getting-seconds)
- [Getting time](#getting-time)
- [💻 Day 3: Exercises](#-day-3-exercises)
- [Exercises: Level 1](#exercises-level-1)
- [Exercises: Level 2](#exercises-level-2)
- [Exercises: Level 3](#exercises-level-3)
- [Booleans](#booleans)
- [Truthy values](#truthy-values)
- [Falsy values](#falsy-values)
- [Undefined](#undefined)
- [Null](#null)
- [Operators](#operators)
- [Assignment operators](#assignment-operators)
- [Arithmetic Operators](#arithmetic-operators)
- [Comparison Operators](#comparison-operators)
- [Logical Operators](#logical-operators)
- [Increment Operator](#increment-operator)
- [Decrement Operator](#decrement-operator)
- [Ternary Operators](#ternary-operators)
- [Operator Precedence](#operator-precedence)
- [Window Methods](#window-methods)
- [Window alert() method](#window-alert-method)
- [Window prompt() method](#window-prompt-method)
- [Window confirm() method](#window-confirm-method)
- [Date Object](#date-object)
- [Creating a time object](#creating-a-time-object)
- [Getting full year](#getting-full-year)
- [Getting month](#getting-month)
- [Getting date](#getting-date)
- [Getting day](#getting-day)
- [Getting hours](#getting-hours)
- [Getting minutes](#getting-minutes)
- [Getting seconds](#getting-seconds)
- [Getting time](#getting-time)
- [💻 Day 3: Exercises](#-day-3-exercises)
- [Exercises: Level 1](#exercises-level-1)
- [Exercises: Level 2](#exercises-level-2)
- [Exercises: Level 3](#exercises-level-3)

# 📔 Day 3

Expand All @@ -73,7 +73,7 @@ We agreed that boolean values are either true or false.
### Truthy values

- All numbers(positive and negative) are truthy except zero
- All strings are truthy
- All strings are truthy except an empty string ('')
- The boolean true

### Falsy values
Expand Down Expand Up @@ -218,7 +218,7 @@ console.log('python'.length > 'dragon'.length) // false
```

Try to understand the above comparisons with some logic. Remembering without any logic might be difficult.
JavaScript is some how a wired kind of programming language. JavaScript code run and give you a result but unless you are good at it may not be the desired result.
JavaScript is somehow a wired kind of programming language. JavaScript code run and give you a result but unless you are good at it may not be the desired result.

As rule of thumb, if a value is not true with == it will not be equal with ===. Using === is safer than using ==. The following [link](https://dorey.github.io/JavaScript-Equality-Table/) has an exhaustive list of comparison of data types.

Expand Down Expand Up @@ -254,7 +254,7 @@ let isMarried = !false // true

### Increment Operator

In JavaScrip we use the increment operator to increase a value stored in a variable. The increment could be pre or post increment. Let us see each of them:
In JavaScript we use the increment operator to increase a value stored in a variable. The increment could be pre or post increment. Let us see each of them:

1. Pre-increment

Expand All @@ -276,7 +276,7 @@ We use most of the time post-increment. At least you should remember how to use

### Decrement Operator

In JavaScrip we use the decrement operator to decrease a value stored in a variable. The decrement could be pre or post decrement. Let us see each of them:
In JavaScript we use the decrement operator to decrease a value stored in a variable. The decrement could be pre or post decrement. Let us see each of them:

1. Pre-decrement

Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -382,7 +382,7 @@ These are not all the window methods we will have a separate section to go deep
## Date Object

Time is an important thing. We like to know the time a certain activity or event. In JavaScript current time and date is created using JavaScript Date Object. The object we create using Date object provides many methods to work with date and time.The methods we use to get date and time information from a date object values are started with a word _get_ because it provide the information.
_getFullYear(), getMonths(), getDate(), getDay(), getHours(), getMinutes, getSeconds(), getMilliseconds(), getTime(), getDay()_
_getFullYear(), getMonth(), getDate(), getDay(), getHours(), getMinutes, getSeconds(), getMilliseconds(), getTime(), getDay()_

![Date time Object](../images/date_time_object.png)

Expand Down Expand Up @@ -553,7 +553,7 @@ console.log(`${date}/${month}/${year} ${hours}:${minutes}`) // 4/1/2020 0:56
```sh
Enter base: 20
Enter height: 10
The area of the triangle is 50
The area of the triangle is 100
```

1. Write a script that prompt the user to enter side a, side b, and side c of the triangle and and calculate the perimeter of triangle (perimeter = a + b + c)
Expand All @@ -568,9 +568,9 @@ console.log(`${date}/${month}/${year} ${hours}:${minutes}`) // 4/1/2020 0:56
1. Get length and width using prompt and calculate an area of rectangle (area = length x width and the perimeter of rectangle (perimeter = 2 x (length + width))
1. Get radius using prompt and calculate the area of a circle (area = pi x r x r) and circumference of a circle(c = 2 x pi x r) where pi = 3.14.
1. Calculate the slope, x-intercept and y-intercept of y = 2x -2
1. Slope is (m = y2-y1/x2-x1). Find the slope between point (2, 2) and point(6,10)
1. Slope is m = (y<sub>2</sub>-y<sub>1</sub>)/(x<sub>2</sub>-x<sub>1</sub>). Find the slope between point (2, 2) and point(6,10)
1. Compare the slope of above two questions.
1. Calculate the value of y (y = x^2 + 6x + 9). Try to use different x values and figure out at what x value y is 0.
1. Calculate the value of y (y = x<sup>2</sup> + 6x + 9). Try to use different x values and figure out at what x value y is 0.
1. Writ a script that prompt a user to enter hours and rate per hour. Calculate pay of the person?

```sh
Expand Down Expand Up @@ -616,7 +616,7 @@ console.log(`${date}/${month}/${year} ${hours}:${minutes}`) // 4/1/2020 0:56
1. Write a script that prompt the user to enter number of years. Calculate the number of seconds a person can live. Assume some one lives just hundred years

```sh
Enter number of yours you live: 100
Enter number of years you live: 100
You lived 3153600000 seconds.
```

Expand Down
2 changes: 1 addition & 1 deletion 03_Day_Booleans_operators_date/03_day_starter/index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="en">

<head>
<title>30DaysOfJavaScript: 03 Day</title>
Expand Down
25 changes: 13 additions & 12 deletions 04_Day_Conditionals/04_day_conditionals.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@
![Thirty Days Of JavaScript](../images/banners/day_1_4.png)

- [📔 Day 4](#-day-4)
- [Conditionals](#conditionals)
- [If](#if)
- [If Else](#if-else)
- [If Else if Else](#if-else-if-else)
- [Switch](#switch)
- [Ternary Operators](#ternary-operators)
- [💻 Exercises](#-exercises)
- [Exercises: Level 1](#exercises-level-1)
- [Exercises: Level 2](#exercises-level-2)
- [Exercises: Level 3](#exercises-level-3)
- [Conditionals](#conditionals)
- [If](#if)
- [If Else](#if-else)
- [If Else if Else](#if--else-if-else)
- [Switch](#switch)
- [Ternary Operators](#ternary-operators)
- [💻 Exercises](#-exercises)
- [Exercises: Level 1](#exercises-level-1)
- [Exercises: Level 2](#exercises-level-2)
- [Exercises: Level 3](#exercises-level-3)

# 📔 Day 4

Expand Down Expand Up @@ -189,7 +189,8 @@ switch(caseValue){
// code
break
case 3:
// code
// code
break
default:
// code
}
Expand Down Expand Up @@ -279,7 +280,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
Expand Down
8 changes: 4 additions & 4 deletions 04_Day_Conditionals/04_day_starter/index.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<!DOCTYPE html>
<html>
<html lang="en">

<head>
<title>30DaysOfJavaScript</title>
<title>30DaysOfJavaScript</title>
</head>

<body>

<!-- import your scripts here -->
<script src="./scripts/main.js"></script>
<!-- import your scripts here -->
<script src="./scripts/main.js"></script>

</body>

Expand Down
Loading