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
Try to understand the above comparisons with some logic. Remembering without any logic might be difficult.
221
-
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.
221
+
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.
222
222
223
223
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.
224
224
@@ -254,7 +254,7 @@ let isMarried = !false // true
254
254
255
255
### Increment Operator
256
256
257
-
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:
257
+
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:
258
258
259
259
1. Pre-increment
260
260
@@ -276,7 +276,7 @@ We use most of the time post-increment. At least you should remember how to use
276
276
277
277
### Decrement Operator
278
278
279
-
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:
279
+
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:
- [Array containing all of the match](#array-containing-all-of-the-match)
30
+
- [Replacing a substring](#replacing-a-substring)
31
+
- [Square Bracket](#square-bracket)
32
+
- [Escape character(\\) in RegExp](#escape-character-in-regexp)
33
+
- [One or more times(+)](#one-or-more-times)
34
+
- [Period(.)](#period)
35
+
- [Zero or more times(*)](#zero-or-more-times)
36
+
- [Zero or one times(?)](#zero-or-one-times)
37
+
- [Quantifier in RegExp](#quantifier-in-regexp)
38
+
- [Cart ^](#cart-)
39
+
- [Exact match](#exact-match)
40
+
- [💻 Exercises](#-exercises)
41
+
- [Exercises: Level 1](#exercises-level-1)
42
+
- [Exercises: Level 2](#exercises-level-2)
43
+
- [Exercises: Level 3](#exercises-level-3)
44
44
45
45
# 📘 Day 12
46
46
@@ -503,22 +503,19 @@ distance = 12
503
503
504
504
```js
505
505
sentence = `%I $am@% a %tea@cher%, &and& I lo%#ve %tea@ching%;. There $is nothing; &as& mo@re rewarding as educa@ting &and& @emp%o@wering peo@ple. ;I found tea@ching m%o@re interesting tha@n any other %jo@bs. %Do@es thi%s mo@tivate yo@u to be a tea@cher!?`
506
-
507
-
console.log(cleanText(sentence))
506
+
console.log(cleanText(sentence))
508
507
```
509
508
510
509
```sh
511
510
I am a teacher and I love teaching There is nothing as more rewarding as educating and empowering people I found teaching more interesting than any other jobs Does this motivate you to be a teacher
512
511
```
513
-
1. Write a functionwhich find the most frequent words. After cleaning, count three most frequent words in the string.
512
+
2. Write a functionwhich find the most frequent words. After cleaning, count three most frequent words in the string.
Copy file name to clipboardExpand all lines: 15_Day_Classes/15_day_classes.md
+17-17
Original file line number
Diff line number
Diff line change
@@ -19,22 +19,22 @@
19
19

20
20
21
21
-[Day 15](#day-15)
22
-
-[Classes](#classes)
23
-
-[Defining a classes](#defining-a-classes)
24
-
-[Class Instantiation](#class-instantiation)
25
-
-[Class Constructor](#class-constructor)
26
-
-[Default values with constructor](#default-values-with-constructor)
27
-
-[Class methods](#class-methods)
28
-
-[Properties with initial value](#properties-with-initial-value)
29
-
-[getter](#getter)
30
-
-[setter](#setter)
31
-
-[Static method](#static-method)
32
-
-[Inheritance](#inheritance)
33
-
-[Overriding methods](#overriding-methods)
34
-
-[Exercises](#exercises)
35
-
-[Exercises Level 1](#exercises-level-1)
36
-
-[Exercises Level 2](#exercises-level-2)
37
-
-[Exercises Level 3](#exercises-level-3)
22
+
- [Classes](#classes)
23
+
- [Defining a classes](#defining-a-classes)
24
+
- [Class Instantiation](#class-instantiation)
25
+
- [Class Constructor](#class-constructor)
26
+
- [Default values with constructor](#default-values-with-constructor)
27
+
- [Class methods](#class-methods)
28
+
- [Properties with initial value](#properties-with-initial-value)
29
+
- [getter](#getter)
30
+
- [setter](#setter)
31
+
- [Static method](#static-method)
32
+
- [Inheritance](#inheritance)
33
+
- [Overriding methods](#overriding-methods)
34
+
- [Exercises](#exercises)
35
+
- [Exercises Level 1](#exercises-level-1)
36
+
- [Exercises Level 2](#exercises-level-2)
37
+
- [Exercises Level 3](#exercises-level-3)
38
38
39
39
# Day 15
40
40
@@ -111,7 +111,7 @@ console.log(person)
111
111
```
112
112
113
113
```sh
114
-
Person {firstName: undefined, lastName}
114
+
Person {firstName: undefined, lastName:undefined}
115
115
```
116
116
117
117
All the keys of the object are undefined. When ever we instantiate we should pass the value of the properties. Let us pass value at this time when we instantiate the class.
Copy file name to clipboardExpand all lines: 21_Day_DOM/21_day_dom.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -74,7 +74,7 @@ We can access already created element or elements using JavaScript. To access or
74
74
75
75
#### Getting elements by tag name
76
76
77
-
**_getElementsByTagName()_**:takes a take name as a string parameter and this method returns an HTMLCollection object. An HTMLCollection is an array like object of HTML elements. The length property provides the size of the collection. Whenever we use this method we access the individual elements using index or after loop through each individual items. An HTMLCollection does not support all array methods therefore we should use regular for loop instead of forEach.
77
+
**_getElementsByTagName()_**:takes a tag name as a string parameter and this method returns an HTMLCollection object. An HTMLCollection is an array like object of HTML elements. The length property provides the size of the collection. Whenever we use this method we access the individual elements using index or after loop through each individual items. An HTMLCollection does not support all array methods therefore we should use regular for loop instead of forEach.
Copy file name to clipboardExpand all lines: readMe.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -240,7 +240,7 @@ This is a multiline comment
240
240
241
241
##### Syntax
242
242
243
-
Programming languages are similar to human languages. English or many other language uses words, phrases, sentences,compound sentences and other more to convey a meaningful message. The English meaning of syntax is _the arrangement of words and phrases to create well-formed sentences in a language_. The technical definition of syntax is the structure of statements in a computer language.Programming languages have syntax. JavaScript is a programming language and like other programming languages it has its own syntax. If we do not write a syntax that JavaScript understands, it will raise different types of errors. We will explore different kinds of JavaScript errors later. For now, let us see syntax errors.
243
+
Programming languages are similar to human languages. English or many other language uses words, phrases, sentences,compound sentences and other more to convey a meaningful message. The English meaning of syntax is _the arrangement of words and phrases to create well-formed sentences in a language_. The technical definition of syntax is the structure of statements in a computer language.Programming languages have syntax. JavaScript is a programming language and like other programming languages it has its own syntax. If we do not write a syntax that JavaScript understands, it will raise different types of errors. We will explore different kinds of JavaScript errors later. For now, let us see syntax errors.
0 commit comments