using if statements in javascript
var age=20;
if (age < 18) {
console.log("underage");
} else {
console.log("let em in!");
}if (expression) {
Statement(s) to be executed if expression is true
} else {
Statement(s) to be executed if expression is false
}
let A = 1;
let B = 0;
if (A == 1 || B == 1){
// some code here
}
Also in JavaScript:
- node send file
- inverser l'ordre des item d'un array js
- shadow in react native
- react native scrollview
- jquery only number allowed to 10 digit
- switch new date getday javascript
- js navigate to another page
- login form validation using pattern in angular
- call laravel route js
- jquery get value of td by class
- vue js on checkbox show div
- check uncheck vanila js
- $(this) option selected jquery
- setinterval jquery
- Write a function that accepts an array of 10 integers (between 0 and 9), that returns a string of those numbers in the form of a phone number.
- how to read 2 dimensional array in javascript
- javascript detect touch screen device
- jquery selector this and class
- vue get height of element ref
- check browser locale javascript
- how to hide header in react navigation
- how to get element by attribute value in javascript
- immutable values
- simple alert program in javascript