how to check if a number is even or odd in javascript
function isOdd(num) { return num % 2;}
console.log("1 is " + isOdd(1));
console.log("2 is " + isOdd(2));
console.log("3 is " + isOdd(3));
console.log("4 is " + isOdd(4));
Also in JavaScript:
- data table in angular 8 from api
- set stange beckground color easeljs
- int to octal javascript
- package.json files property local
- regex char or char
- beautiful day at the movies hackerrank solution
- get random reddit image link
- how to return a string x amount in javascript without using . repeat
- js how to know if element touch border
- disable text selection in js
- text input underline react native
- restful react npm
- js add src to img
- javascript skip default parameter
- search in a table jquery
- pull out only text from element javascript
- jQuery create div element
- devolver nombre propiedades de objeto javascript
- chroma js contrast check
- assign array to another array javascript
- get attribute value jquery href
- function inside function javascript
- get element by id in javascript
- webpack proxy