Horje
find highest and lowest number string javascript Code Example
find highest and lowest number string javascript
function myFunction(str) {
    var tst = str.split(" ");
    return tst.max();
}
js return the highest and lowest number
console.log(Math.max(1, 3, 2));
// expected output: 3

console.log(Math.max(-1, -3, -2));
// expected output: -1

const array1 = [1, 3, 2];

console.log(Math.max(...array1));
// expected output: 3




Javascript

Related
chess game in javascript github Code Example chess game in javascript github Code Example
Unexpected end of JSON input while parsing near '...ts-2.3.0.tgz","fileCo' Code Example Unexpected end of JSON input while parsing near '...ts-2.3.0.tgz","fileCo' Code Example
create callback function javascript Code Example create callback function javascript Code Example
vuejs show content on loaded Code Example vuejs show content on loaded Code Example
export aab bundle react native android Code Example export aab bundle react native android Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7