Skip to content

Commit c024cb6

Browse files
committed
Syntax Corrections
Syntax errors: 1. There is an extra closing parenthesis ')' at the end of the first line that should be removed. 2. In the second line, the square brackets '[]' should be replaced with parentheses '()' for creating a Set.
1 parent bf90b1f commit c024cb6

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

README.md

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -372,9 +372,7 @@ let airplane = {
372372
ratings: 4.9,
373373

374374
book(passenger, flightNum) {
375-
console.log(
376-
`${passenger} Booked flight in ${this.flightName} with flight Number ${this.atacode}${flightNum}`
377-
);
375+
console.log(`${passenger} Booked flight in ${this.flightName} with flight Number ${this.atacode}${flightNum}`);
378376
},
379377
};
380378

@@ -447,12 +445,7 @@ _[From video lecture 6.2]_
447445

448446
```html
449447
<form action="" class="testForm">
450-
<input
451-
type="password"
452-
name=""
453-
class="inputPass"
454-
placeholder="Enter Password"
455-
/>
448+
<input type="password" name="" class="inputPass" placeholder="Enter Password" />
456449

457450
<input type="submit" value="Check Password" />
458451
</form>
@@ -1161,13 +1154,9 @@ console.log(name, age);
11611154
_[From video lecture 12.3]_
11621155
11631156
```js
1157+
let nums = [5, 7, 4, 9, 2, 8];
11641158
1165-
let nums = [5,7,4,9,2,8];
1166-
1167-
1168-
1169-
let newNums = "store Shallow copy of nums inside newNums variable")
1170-
1159+
let newNums = 'store Shallow copy of nums inside newNums variable';
11711160
```
11721161
11731162
**12.5:** You have given an array as below . Create a function which accept **multiple** elements as an argument and return last **4** element of the array
@@ -1322,6 +1311,7 @@ let set = new Set[(1, 2, 3, 2, 1, 3, 4, 12, 2)]();
13221311
output;
13231312
13241313
let arr = 'Do something here to convert....';
1314+
console.log(arr);
13251315
```
13261316
13271317
**Question 8:** Guess the **Output** and Explain Why?

0 commit comments

Comments
 (0)