Skip to content

Commit 7de7c27

Browse files
authored
Merge pull request #9 from samhep/master
General spelling and grammar fixed
2 parents f32b274 + 218744d commit 7de7c27

File tree

9 files changed

+14
-12
lines changed

9 files changed

+14
-12
lines changed

JavaScript_Advance/arrowFunction.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class Student {
3737

3838
console.log((new Student).getName()) // Gives error for node versions before 12.4.0(Approx) SyntaxError: Unexpected token =
3939

40-
class Studentinfo {
40+
class StudentInfo {
4141

4242
constructor (firstName,lastName, age, branch, college){
4343
this.firstName = firstName;
@@ -57,6 +57,6 @@ class Studentinfo {
5757

5858
}
5959

60-
let Swapnil = new Studentinfo("Swapnil", "Shinde",19, "Computer", "Sies"); // This way we can create new objects with arguments
60+
let Swapnil = new StudentInfo("Swapnil", "Shinde",19, "Computer", "Sies"); // This way we can create new objects with arguments
6161

6262
console.log(Swapnil.getFullName()); // Output My name is Swapnil Shinde

JavaScript_Advance/defaultValues.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ const helpGST = (name, age) => {
44

55
helpGST(); // Output will be undefined undefined
66

7-
const helpGSTwithDefaultValues = (name, age=19) => {
7+
const helpGSTWithDefaultValues = (name, age=19) => {
88
console.log(name,age);
99
}
1010

11-
helpGSTwithDefaultValues("Swapnil"); // Output Swapnil 19
11+
helpGSTWithDefaultValues("Swapnil"); // Output Swapnil 19
1212

13-
helpGSTwithDefaultValues("Vishal",23); // Output Vishal 23
13+
helpGSTWithDefaultValues("Vishal",23); // Output Vishal 23

JavaScript_Advance/destructuring.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ array = [1, 2, 3, 4] // Array Declaration
1919

2020
let [ first, second, ,fourth ] = array // Array Destructuring
2121
// In this the Order of variables matters the most as arrays don't have keys
22-
// For skipping some values we can do that using as shown here we have skipped the third value
2322

23+
// For skipping some values we can do that using as shown here we have skiped the third value
2424
console.log(fourth); // Output 4
2525

2626
newArray = ["Swapnil", 19, "Shinde"] // New array

JavaScript_Advance/eventloop.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ setTimeout(() => {
22
console.log("Hey im setTimeout");
33
}, 3000); // Here program goes into waiting state till timer becomes zero
44

5-
console.log("Last statment"); // This statment gets printed first
5+
console.log("Last statment"); // This statement gets printed first
66

77
// This enables the non blocking using event based management

JavaScript_Advance/fsModule.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// Fs is a inbuild function in nodejs to perform operations on files
1+
// Fs is a inbuilt function in nodejs to perform operations on files
2+
23

34
// There are always two ways to do fs operation as sync and async
45

@@ -20,7 +21,7 @@ content.on('open',() => {
2021
console.log("File opened for reading");
2122
});
2223

23-
// Here we are listing to the event called data which will be called when data is present
24+
// Here we are listening to the event called data which will be called when data is present
2425
content.on('data', (data) => {
2526
console.log(data);
2627
});

JavaScript_Basics/arrays.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Javascript arrays can take any values in the same array
2-
// We dont have to specify the size
2+
// We don't have to specify the size
33
let a = ['hii', 26 , "Swapnil"];
44

55
console.log(a);

JavaScript_Basics/classes.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class StudentInfo {
1616
// college = "SIES"; // This is allowed above ES7, ES8
1717
constructor (name){ // name and age are arguments given to object at the time of creation of object
1818
this.name = name; // This initializes the local variable as name passed in argument
19-
this.college = "SIES"; // We want the College to be same for all stundents that's why it is declared outside of constructor
19+
this.college = "SIES"; // We want the College to be same for all students that's why it is declared outside of constructor
2020
}
2121
getNameAndCollege (){ // This is a methon in Stdent
2222
console.log(`${this.name} ${this.college}`);

JavaScript_Basics/functions.js

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ function Add (a,b) { // Here We have taken 2 Arguments a and b
1414
console.log(Add(10,5)); // This Calls the function
1515
// We have to directly pass the arguments in function call
1616

17+
1718
// Functions which don't have name are called Anonymous this should be assigned to a particular variable
1819
let helpFast = function (){
1920
return("Fast Fast");

JavaScript_Basics/objects.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ console.log(a);
3939
let objectWithFunction = {
4040
name: "Swapnil",// We can omit the " " in keys but for string values it is necessary
4141
rollno: 76, // We assign any type to keys
42-
getfull: function() { // Dont use arrow function here as arrow functions don't have this property
42+
getfull: function() { // Dont use arrow funciton here as arrow functions don't have this property
4343
console.log(`${this.name} ${this.rollno}`);
4444
}
4545
};

0 commit comments

Comments
 (0)