-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJS_Assignment_Q23.js
More file actions
34 lines (21 loc) · 948 Bytes
/
JS_Assignment_Q23.js
File metadata and controls
34 lines (21 loc) · 948 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
let car = 'swift';
console.log("== Is car 'swift'? I predict True.")
console.log(car == 'swift')
console.log("== Is car'swift'? I predict False.")
console.log(car == 'Swift')
console.log("=== Is car 'swift'? I predict True.")
console.log(car === 'swift')
console.log("=== Is car 'swift'? I predict False.")
console.log(car === 'Swift')
console.log("!= Its a 'toyota' product ? I predict True.")
console.log(car != 'toyota')
console.log("!== Is car 'Swift'? I predict False.")
console.log(car !== 'swift')
console.log(">= Is car.length 5 ? I predict True.")
console.log(car.length >= 5)
console.log(">= Is car.length 7 ? I predict False.")
console.log(car.length >= 7 )
console.log(" == && >= , Is car 'swift' && car.length >= 5 ? I predict True.")
console.log(car == 'swift' && car.length >= 5)
console.log("== || == , Is car == 'swift' || car == 'Suzuki' ? I predict True.")
console.log(car == 'swift' || car == 'Suzuki')