Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js and

// "and" logical operator in JS: &&

// An example
const John = {age: 19}
const Luke = {age: 17}

if (John.age >= 18 && Luke.age > 18) console.log('John and Luke are 18+')
 
PREVIOUS NEXT
Tagged: #js
ADD COMMENT
Topic
Name
5+4 =