-
Notifications
You must be signed in to change notification settings - Fork 0
/
23.js
21 lines (21 loc) · 992 Bytes
/
23.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
var car = "Rose Noire Droptail(Rolls Royce)";
console.log("Is car includes Rolls Royce? I predict true.");
console.log(car.includes("Rolls Royce"));
console.log("Is car == Ferrari? I predict false.");
console.log(car == "Ferrari");
console.log("Is car not equals to Ferrari? I predict true.");
console.log(car != "Ferrari");
console.log("Is car != Ferrari? I predict true.");
console.log(car != "Ferrari");
console.log("Is car == Bentley? I predict false.");
console.log(car == "Bentley");
console.log("Is car name length equals to 32? I predict true.");
console.log(car.length == 32);
console.log("Is car is equal to subaru? I predict false.");
console.log(car == "Subaru");
console.log("Is car name length > 8? I predict true.");
console.log(car.length > 8);
console.log("Is car != Rose Noire Droptail(Rolls Royce)? I predict false.");
console.log(car != "Rose Noire Droptail(Rolls Royce)");
console.log("Is car type is not string? I predict false.");
console.log(typeof car != "string");