Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

odd even condition with ternary operator in javaScript

let number = 15;
number %2 ==0 ? console.log(number ," is Even Number!!!"): console.log(number, " is Odd Number!!!");
Comment

PREVIOUS NEXT
Code Example
Javascript :: How to include JSPs file from another folder 
Javascript :: import axios 
Javascript :: var data ="<tr<td"+ data.data[i].name"</td"+"<td"+ data.data[i].email"</td"+"<td"+ data.data[i].create_at"</td</tr"; 
Javascript :: onclick string 
Javascript :: vue watch deep property 
Javascript :: how to know type of dom element in js 
Javascript :: moment js convert to local timezone 
Javascript :: detect touch react 
Javascript :: how to create uuid in javascript 
Javascript :: react native flatlist from bottom to top 
Javascript :: como saber si un checkbox esta seleccionado en jquery 
Javascript :: refresh a page in jquery 
Javascript :: mongoose connect to URL of atlas 
Javascript :: vscode prettier use tabs 
Javascript :: url redirect javascript 
Javascript :: redirect to different page in javascript 
Javascript :: select first 3 letters js 
Javascript :: array sort by key javascript 
Javascript :: npm json server 
Javascript :: component unmount useeffect 
Javascript :: Set Custom User Agent react 
Javascript :: jquery merge objects 
Javascript :: getelementbyxpath 
Javascript :: typescript filter array of objects 
Javascript :: js not equal to null 
Javascript :: javascript get json keys 
Javascript :: p5.js change button position 
Javascript :: js check if obj all false 
Javascript :: javascript decimal to string 
Javascript :: javascript get device 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =