multiple conditions in if statement javascript code example

Example 1: if statement

if( name = 'george washington'):
	print("You have the same name as the first president of the United States")
    // python 
else:
	print("You do not have the same name as George Washington")

Example 2: multiple conditions in javascript

let str = "fuck it I don't care";

let results = []
let results[0] = str.includes("hello") || str.includes("hi") || str.includes("howdy");

console.log(results[0]);

Tags:

Cpp Example