math.min
var x = 10, y = -20;
var z = Math.min(x, y); //z = yconsole.log(Math.min(2, 3, 1));
// expected output: 1
console.log(Math.min(-2, -3, -1));
// expected output: -3
const array1 = [2, 3, 1];
console.log(Math.min(...array1));
// expected output: 1
Also in JavaScript:
- add variable inside regex in javascript
- attr hidden to show jquery
- javascript clone array of objects
- pagination.js
- javascript objet keys comparaison
- remove backslash in json array javascript
- javascript rupiah format
- react native class component template keyboard shortcut
- object methods in javascript
- Failed to execute 'contains' on 'Node': parameter 1 is not of type 'Node'
- tays javascript answer test
- async await arrow function
- implement the remove property function
- reactjs web3 components
- Javascript get element height and width
- how to install reveal.js from node
- console.log clear screen
- jquery insert after
- get element by tag name
- flatlist footer react native
- jquery slideup
- dom get all tags
- go to new page javascript
- disable text selection in js