-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQ23.ts
31 lines (21 loc) · 885 Bytes
/
Q23.ts
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
let car: string = 'Subaru';
console.log("Is car == 'Subaru'? I predict True.");
console.log(car == 'Subaru');
console.log("Is car == 'toyota'? I predict False.");
console.log(car == 'toyota');
console.log("Is car === 'Subaru'? I predict True.");
console.log(car === 'Subaru');
console.log("Is car === 'Subaru'? I predict False.");
console.log(car === 'Subaru');
console.log("Is car !== 'honda'? I predict True.");
console.log(car !== 'honda');
console.log("Is car !== 'Subaru'? I predict False.");
console.log(car !== 'Subaru');
console.log("Is car.length > 4? I predict True.");
console.log(car.length > 4);
console.log("Is car.length < 5? I predict False.");
console.log(car.length < 5);
console.log("Is car.includes('u')? I predict True.");
console.log(car.includes('u'));
console.log("Is car.includes('x')? I predict False.");
console.log(car.includes('x'));