Search
 
SCRIPT & CODE EXAMPLE
 

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+')
Comment

PREVIOUS NEXT
Code Example
Javascript :: remove backslash from string 
Javascript :: react native keyboard event listener 
Javascript :: dynamic route vue 
Javascript :: How to Use the toLowerCase() String Method in javascript 
Javascript :: react native paper text input 
Javascript :: "SyntaxError: Unexpected token o in JSON at position 1 
Javascript :: axios Request body larger than maxBodyLength limit 
Javascript :: javascript log to console 
Javascript :: jquery ajax get with authentication 
Javascript :: npx create-express-api 
Javascript :: push function in javascript 
Javascript :: mathjax new line 
Javascript :: redirect in vue 
Javascript :: Easy Way to Check if 2 Arrays are Equal in JavaScript 
Javascript :: time js code 
Javascript :: javascript array size 
Javascript :: js generate random string of length 
Javascript :: return last two values of array in javascript 
Javascript :: express js url with id 
Javascript :: javascript fs read 
Javascript :: get home dir in nodejs 
Javascript :: bootstrap programmatically change tab 
Javascript :: varchar max length 
Javascript :: js set iframe src 
Javascript :: js click anchor 
Javascript :: export all javascript 
Javascript :: add multiple class from array javascript 
Javascript :: jquery nice select 
Javascript :: print random string from an array to screen in javascript 
Javascript :: javascript join array 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =