showing results for - "js return the highest and lowest number"
Leonardo
15 Jan 2020
1let numbers = [4, 13, 27, 0, -5]; // Get max value of an array in Javascript
2
3Math.max.apply(null, numbers); // returns 27
4
Alex
04 Feb 2020
1function minMax(arr) {
2  return [Math.min(...arr), Math.max(...arr)];
3}
Nicole
31 Feb 2017
1console.log(Math.max(1, 3, 2));
2// expected output: 3
3
4console.log(Math.max(-1, -3, -2));
5// expected output: -1
6
7const array1 = [1, 3, 2];
8
9console.log(Math.max(...array1));
10// expected output: 3
queries leading to this page
how to get max value of an array in javascriptget max number in array nodejsjavascript get greates number in arrayfind the maximum number of an array javascriptjavascript min max integer indiceshow to get max of the araydifferent coding ways to get max number in array javascriptfind max jsjs return the highest and lowest numbermath max javasciptmath max on arraymin and max jsmath max of an array javascriptes6 return max in arrayget max value in an array javascripthow to build an array till max value es6max step array in javascripthow to get highest 3 values from array in jqueryjs array get max elementjavascript max value array keyset max no of item in array javscriptmin max javascrioptget max integer in array jsfind the max value in an arraymax js functionfind max value in arraymath max from arrayjavascript array find max propertyjs get max value index from arrayhow to check the highest value jshow to find max value in values array javascriptmax function jsfind the array with max value of array of arraysjavascript get highest and lowest value for loopget max value from array javascript in o 281 29max number in an array javascriptjavascript minimum of arrayget the highest value in array javascriptmin and max array algorithm javascriptmax from array in jsfind the max number in an arraymax of a arrayhow do you find the max element in an array 3fcan you put a max length on an array javascriptjavascript html how to get max and min from arrayjs min maxmin max value array javascriptfind highest and lowest number string javascriptfind max number in array javascripthow to find max element in array in javascriptarray max javascriptmax min av array javascriptget lowest number in javascriptfind out the maximum number in an array in javascriptmath max array javascripthighest number jscheck which value is the highest javascriptmin max javascriptfind min and max value in array javascriptlowest and highest numbers in jsfind max value in javascriptmax of array in javascriptget max element from array javascriptfind the kth max and min element in an array javascriptmax value in an arraymath maxjavascript array min maxjavascript maximum value in arrayuse math max in javascript in arraysget max and min from array javascriptjavascript get max value arrayget the max element in array javascriptmax element of array jsmax element in an arraynode js min to maxmax method in javascriptjquerry var 3d greatestjs highest value of arraymath max to work on arraysjs get max value from arrayjavascript array set max limitfinding min and max in arrayusing entries and max together in javascriptjs checking the max numberjquery get largest value in arraymax number in array jshighest value in array javascriptmax of an array nodehow to find max in array jsfind the large and small in array javascriptmax of array javascript 27js return max in array of intshighest javascript numberjavascript min value in arrayhow to find max and min value in array using javascriptmax value in javascript arrayapply math to a arrayjs array max value indexmaximum of array javascriptfind min max in array javascriptjs select number highestfind max and min in array javascriptarray max 28 29 jsarray maxes6 get max value in array of floatjavascript find max value in arraypython return the highest and lowest number stringsjs find maxhot to find the max value in array without any bult in method in jsnode array get maxmax number javascript array without math max 28 29how to get the maximum value of an area javascriptmath max javascript arrayfind max value index in array javascriptsort array lowest to highest javascripthow to find the max number in an arrayget max number from array javascriptmin and max number in arrayindex of max value in array javascripthow to find max value from array in javascriptjavascript max of listmax 28 arrayfind the maximum number in an array javascriptmath max jsjs max 28 29reduce js max numberminimun and max of an array jsain array min max elementhow to find a maximum number i array javascriptapply max on each jsreturn value from an array set max limit javascriptmath max in array jsmax element in arrayjavascript get max of multiple valuesmath amx 280 29 j queryhow to use math max for an array in javascriptfind max number from arrayjavascript max value arrayjs list max valuenot find max value in array javascriptarray of array return max lengthfind the value of max for string from an array javascriptfind max number in arrayfind min max in arrayjavascript get max of two numbersjavascript array max itemhow to get the max value in an array javascriptmax element from array javascriptget max height of elements in array jsmaximum in an array javascriptcan you use math max for javascript arrays 5cjs array max lengthmath max in typescripthow to find min value in array javascriptjavascript check highest numberfind max and min in arraymax length arrayget max from arraymax array of number in js whitout jsmin and max arraylustjs get max of arayarray maxjavascript max in arrrayreturn highest value in array jsjs max in arrayhow to find given key have the highest value number in javascriptjavascript math get highest integer partget max from array javascriptnumber with the highest in javascriptfind the max element in an arrayhow to find max indexes of elements in array jsjavascript function highest numberhighest and lowest jsfind min value in array javascriptfind the max number in an array jsnode js max of arrayhighest possible number javascripthow to find max in array in jsfind the maxinum in an array jsarray get max value javascriptmax funtion in jsfind max value from array in javascriptget max value of a number array in javascript with using in built functionbig number in array jsjascript max int arrayhighest number in javascripthighest integer value in jsjs max of array of numbersjs array max function max javascripthow to find max value of an array in javascript using for loopmath min 28 arr 29max array function javascriptmax value of array javascriptjava bigineger max valuehow to return max value of array in jssjavascript maz numberjs function find the highest number variblejs find highest value in arrayfind a max value in javascriptmath max of arrayjs maximum value of arraymax element in array javascriptmax of array in o 1 javascripthow to say highest number in jsjs array max itemfind max value in array object javascriptmath max arrrayget max of list jsfind number between min and max in arrat javascriptjs math largerjs max listhow to set max size of array in javascriptjs check which value is the highestmath min and math max in javascriptget max value of arrayjs find max of two fvaluefind max value in array jsjs how to get the highest numbermax from arraymath max arraymax integer in a array jsselect max from array javascriptmath max js arrayget max min in arrayhow to find max element in array jsjavascript to find the max valuejs find number from min to maxfinding max in array javascriptjs set max size for arrayhow to find greates to least array javascriptmax of an array javascriptjs get max element with propertyjavascript pick highest valuejavascript max array valuejavascript get max value out of arrayhow print index from max value to min value array javascriptexplain math maxmax from array jsmax in a array jsjs max and low number in arraycheck lowest and highest number in javascriptfind max number in the arraymaxscript find from arrayjs get max value of arrayget max value of array javascriptnode js min to max numbermax and min arrayget max value from array jqueryjs max js max element in arraymath max on array in jshow to get the max injsspread operator find max value indexmethod for min and max number in an array javascriptarray min array javascriptjs math max functionmax value of an arrayhow to find max number in array and use a funjavascript get max of 2 valuesjavascript highest value number in arraymax in array of arraymax jshow to find the max in array jsjs getting largest float in arrayjavascript find max from arraymath max js es6 typescript math maxmaximum element in an array javascriptget max value of an array javascriptjavascript max number in arr indexjs return max value from arrayget number of highest values javascriptfind min and max in an arrayfind max from array functionjs min and max of arrayget max number in array javascriptmax number on array jsfind the max in array javascriptcss larger of 2 numbersfind the minimum value in an array items javascriptjs max value of arrayfind max number in reactjswhat is max array length in javascripthow to get the lowest value in jsmax in array javascriptjs get max val from arrayjs array max propertymaxlength javascript arraymath max array javaslargets vakue in array jsjavascript highest value in arrayarray max javascriptmax in an array jsjs array max elementmax arrayjavascript get lowest valuemax array length javascripthow to get the max element in the arraymax an array jsmax in array in jsmath max 28arr 29 javascripthow to find min and max value in array in jscheck max value on arrayreturn array highest value to lowest js get the highestmax array value javascriptmax array size in javascript find max element in an arrayarray maxswif tget max value of an array javascripthow to get max value in array javascriptjavascript find highest numbers in arrayfunction to find max element of an arrayjs get highest number in arrayjs max sub arraymax array element javascriptarray min maxfunction that returns highest value javascriptchoose highest value javascriptjs highest numbera function that takes in two numbers and returns the maximum of the two in jsarray max and min jsjavascript math maxfind highest value in array javascriptjavascript to get ax value from arrayjs array max valuejavascript array min valuejs array maxjs generate array from min to maxjs min of arrayfind the max and min number in array javascript for loophow to get max length in arrayjs max value arrayhow to get numbers from lowest to highest javascriptjavascript get max value from arrayfind max in array typescriptget the value of maximum and minumum integer javascriptjsfind max arrayhow to find max value of array in javascripthow to find maximum of an arraycreate function that get highest and lowest number jshow to find the minimum and maximum value in an array javascriptreturn max of array javascriptset the max length of an array jsdoes math max work in an array in javascriptjavascript array max and minhow to find the highest value in javascriptmax function in jsmax and min javascriptget biggest number in array javascriptmax value in an array javascriptfind greatest value in array jsmax min number jsoperator in javascript for highestreturn max value from an array javascriptjavascript array get max valuejavascript return highest value from functionjavascript array max minarray get max number jsmax of array in jsreturn highest number in a string jsget max value from arrayjs return all max values of arrayjavascript find max value from arrayhow to find max with for each jsjs max number of elements in arrayarray get max jshow to get min and max from array javascriptmax in int array javascriptjavascript ceil highest possible valuejs array min maxes6 max value in arraymax number in a list in jsjs math maxmath max value in array javascripthow to found max integer in an array jswhat is the maximum size of an array in javascriptjavascript math maxlimitminimum of array in javascriptmax javascriptjavascript minimum number in arrayhow to get the max value from an array in jshow to find min of an array in javascriptjavascript min arrayselect highest number javasriptfind min max in array jsmax of an arrayjs highest possible numberhow to find the max value in an array javascriptfind max and min value in array javascriptmin and max of arraymin and max in array jsa max java scriptjs math max max value in array jsmath max for arrayjs math methods find largerst numberhow to find the min and max value in an arraymax number of an array javascriptjavascript max of two valuesmax of arrayjs find max in arrayjs minimum of arraysearch an array for max valuejs max value in many arrayslowest to highest javascriptfind maximum value smaller than or equal to the given number in array in javascriptjs find max 5 in array return the highest and lowest number jsmax num js arryfind min value in the array jsget max value in array javascriptjavascript array max numberjs max value in arrayjavascript max min list of arraymax in array optimal approach jsfind max value in array javascriptjs find the min and max funcitonfind maximum and mininum in array in javascriptmax max array javascriptjs get max of array of arraysmin and max values of list in javascriptassign whichever is max value javascriptjavascript select max from arrayjs find max in listhow to get max value in array in javascriptmax out of an array javascriptarray min to maxmax 26 min of arrayjquery max functionadd minmun array length javascriptarray from min maxjs max array lengthjs find min max in arrayfunction to find max value in array javascriptarray prototype get max valuejs get highest value in arrayjavascript max numberjs find min and max in arraymax dictionary value pythonget all same max numbers in array javascriptmath max in javascript arrayprint max element in array in node jsjavascript max in arraymax min array javscriptjavascript array get min and max valuemath max applyhighest number javascriptarray max for string value javascriptfind min and max in array jsmax length of array jsmax in javascript arrayfind the min 2fmax element of an array in javascriptkth max and min element in array in javascriptmaximum of array in javascript without max functionmax item in array javascriptarray max valie jsfind min and max date in array javascriptjs max number in arrayfind the min 2fmax positionof an array in javascriptjavascript min max in arrayget highest value in object using jsfind min in array jsarrray function how to get min and maxget max of array javascriptfind the max or min value in an array jsget both min and max of array javascripthow to find max element in arraymax of array javascriptwrite a program to find the maximum and minimum element in an array in javascriptfind the max in an array javascriptfind min and max sum in array javascripthow do you find the number with the highest value of x and y javascriptfin min max in arrymax value of arrayjavascript get the max value from arrayarray javascript get max value per namejavascript max array sizemin mac value jsfind minimum and maximum value in array in javascriptlargest value in array javascriptmin and max of an array jsfind biggest number in array javascriptfind max values in object type in node jsmaximum value in array javascriptjavascript good for largest arrayfind max value from an array in javascript es5max value from array in javascriptjavascript return largest numbermax value in arraymax element array javascriptrescript find max array elementjs find max i arramax function in javascript for arrayjavascript max length on every element in arrayfind max value in array without function es6math max from array javascriptmax and min number in array javascript solutionmath max javascriptget the max number of an arraymax in array jsjs max array 4max of an array jsjs find max array length from arraymax lenth array jsmax value of array jshow to find max of arraymath max in jsget max value of an array jsfind max of array jsjs 2bhow to get max and second max from an arraymax number in array in js highest and lowest javascriptjavascript function highest and lowest numbersjavascript max and min of arrayarray max value jshow to set min and max number for an arraymaximum number in array javascriptmax 28 29 javascript arrayjavascript program to find the maximum and minimum element in an arrayfind largest value in array javascriptjavascript math max inthow to pass array in math max work in javascriptarray max jsmin max number from array jsjavascript how to hold the highest numbergot to get min e max value in arrayget max length in array javascriptarray prototype to find max elementreturn highest and lowest number javascripthow to find maximum value in array javascriptjavascript get maximum value in arraymath max in arrayfind highest number javascript functionfinding araay max value in jshow to get highest 3 values from array in javascriptjs check for the lowest numberhow do you find the number with the highest value of x and y in javascriptuse the correct math method to return the largest number of 10 and 20 javascript max 28 29js max numberarray from javascript no maxlengthjs get max in arrayfind the max and min numbers in a list javascripthighest available number in javascriptmath max nan jsjget min and max number of array javascriptmax index js functionmax array javascriptmath max value jsjavascript array is maxfind max in array jsjavascript max value in arraymax min javascriptjavascript function highest and lowest numberfind array in array with max length javascriptmax value inside array jsmin max array javascriptmax array numberjavascript math max valuecheck max value in jsjavascript array get maxmath max to arrayjavascript max 28 29 methodjs index of biggest valuemax of array jsmax valu of array jsjs function that outputs maximum valuesfind maximum number in array jsarray maxlengthjavascript create array min max stephow to find min and max through an arry in javascriptget array with max lengthfind max in an array javascriptfind maximum and minimum element in an array javascriptget maximum number from array in jsarrays max jsjs max array sizepython return highest and lowest number stringreturn max value of array javascripthow to find max element in array javascriptarr max jsjavascript print max in an arrayget highest number from array javascriptjs take max of x items from listmax value in array javascriptmaximum of an array javascriptmax number in jsfind maxarray min and maxmax number in array javascriptget max of to values javascriptfind max number in an array javascripta function that returns the largest value in a set of values jsmath max on arrayjs arr maxshow max number from an array jsmin max from array javascriptuse array math maxhow to get max value in arraycan we pass array to amax function in javascripthighest and lowest number javscriptmath to max javacripthow to find max of an arrayfind max in array javascriptarray min and max javascriptjavascript max of 2 numbersjavascript max arrayget min max from js arrayget max value from array jsmaxscript arrayhow to find max length javascript use fuctionjs math maxjavascript array get max x elementshow to display the maximum number in an array in javascriptcount the max value in array javascriptmath maxh applyjavascript maximum in arrayfinding max element in an arrayfind highest and second highest number in jsnodejs get the greater value easyfind maximum value i jsjs create array of length with min max valuesget array max value javascriptjavascript array max elementget highest of 4 value javascripthow to find the max in an array jshow to tell what value was at its highest jsmaximum in array jsjavascript max of arrayindex max number array jshighest and lowest number javascriptjs max from arraynode js find max of arryjs get the lowest numberfor javascript find highest numberis there a max 28 29 method for js arrayhow to get max index of array in javascriptget max of a list javascriptmax out of array jsfindmax javascript arraymath max 28 29passing arraymin and max of an arraymath max is not iterablewhere the max value in array isjavascript get max value in arraymin in array jsmax value from array es6return array with max lengthbest method for finding max min in arrayjs max betweenhow is javascript 27s max function madejavascript max functionjs array max element valuejavascript es6 highest and lowestjavascript max valuehow to max in javascriptmax value array javascriptjs maximum in arrayfind max element in array in jsjs get min and max values of arraymin max array jsnan when using math maxjavascript return highest numberreturn array highest to lowest js map 28 29node js math max from array itemsjavascript max in array and classfinding max in an array maximum of an array jstypescript math min arraylargest value in array jsjavascript find the max value in an arrayjavascript max from arrayhow find max and min number in array javascript for looparray inside array max and minjavascript select all max from arraymath max arrayfind max value arr javascriptmax from a list in jsreturn highest number jshow to get max value from list in jsmath max in array javascriptjavascript array maxjs math max over arrayjavascript function to calculate array maxmax number javascriptjs max array itemfind minimum value numbers array javascriptfind min max from large array in javascriptjs math max on arrayget max value from array javascriptfind the max of an array javascriptmax of array javascriotcode max javascriptjavascript get max index of arraymath max 28js get min and max of arrayjs maximum numberjavascript take max 4 from arraymaximum data size javascript array3 max values jsjavascript get max number in arraynodejs get biggest pairget max element in arraay jsmax item in array jsmax value of an array javascriptget max and min in an arrayjavascript array highest valuehow to get max and min in array in jshow to find max number in array javascriptmax and min inside array javascriptmaxscript get min from arrayget max x elements from array javascriptjavascript get highest element in an arraymin and max of an array using javascript functionjs find max number in array less than given valuehow to get max index of array in jsmaximum number of elements in an array in typescriptjs greatest element of arraymath max apply 28null 2c array 29get the max index of the array jsusing math min on an string array jshow to present all begest value in arry jsjavascript array math maxfind max element in array javascriptjs min max howmax item in array max array jshow to get max of array in jsget max of an array javascriptjavascript array max lengthmaximum in array javascripthow to get min value in array javascriptarray js max valuejavascript min max arrayfinding max value in a set jsfind minimum in array javascriptjs find maximum in arraymax array in javascriptarray max value javascriptjavascript max number in arrayfind lowest number method javascriptjavascript math max arrayjavascript array max valuemax value in javascript parametersjavascript how to find max value in arrayjavascript get min max from arrayfind highest number javascript for in functionjs max of threereturning the max length in an arrayjavascript find maximum value in arraymax ficntion in jsjs array max sizehow to find the maximum element in an array jsmax number in arraymath max gives two values one is undefinedget max value javascript arrayif price is highest in the array javascriptmax value in list javascripthow to print max value from an array javascriptarray from js min maxreact array get highest numbermax elements in an arraynode number array get maxjavascript min maxmax function in javascriptjavascript get highest valuefind the max of an array jsget max from list javascriptjavascript find item in array with max valuemax array of number in js without method jsmax form array jsjquery max value from arrayhow to return minimum and maximum numbers in arrays in js javascript array maxfind the max number in an array javascriptjs max arrayhow to find max value in arrayget minimum of array jshwo to find max number in array in jshow to find the highest and lowest number in javascripthow to get the highest number in jsfind highest and lowest number in jstypescript max of several numbersmaximum number in arrayjavascript min and maxfind max number in array jsmath max arraymax method in jshow to find min value from array in jsjs max functionhow to set max array length javascriptmax size of array how to pass array in math amx work in javascriptmaximum and minimum in an arrayin jshow find max and min number in array javascripthow does max work in javascripttypescript max value from arrayhow to find max number in arrayjs array get highest valuemaximum value of number array javascriptreturn biggest value in array jshow to find maximum number in an array javascriptjavscipt find the lowest valuefind the max number in an array in jsget maximum value in array javascriptmin and max element in arrayarray max jsmax javascript arrayjascript max int arratmax value of arrray javascripthow to get max value in javascript arraygiven an array return the min and max value javascriptfind max of arraynode js math maxmath max functionmax function array javascriptmath max for arrayhow to get max value from array in javascriptfind biggest element in array jsjava script in maxdoes math max work on arraynode array maxarray max valuejavascript get maxfinding max and min from array in jsfind maximum in array javascripthow to find max value of array jsjs min arrayget the possible lowest number and biggest in jsoperator in javascript for highest without math maxbiggest element matrix javascript javascript fastest way to find the biggest number in an arrayjavascript maximum value in array of integersmax value in an array jsjs array from min maxfind max element in arrayfind the min and max index in jshow to use the max value in an array jshighest and lowest javascriptget max element in array javascriptjavascript maxfind maxof array jstypescript min max functionsarray prototype maxmax in javascripthighest to lowest numbers javascripthow to get maximum value from array javascriptget next largest value in array javascriptget max from array sjs array get max valuearray 3d max 28array 29 min 28array 29 how to find the biggest 5 values in objectma x in array jsfind highest value in arrayhighest value in array for jsreturn max arraymax in array javascript with indexfunction get max number in arrayarra y max javascriptfind the min and max elems of the arrayget max in array javascriptreturn highest value in array javascriptget max in javascriptjs min max arrayjavascript print max in arrayjavascript get max and min from arrayhow to set max of array javascriptfor in js find max valuereactjs find the largest number in arrayjs max of arrayhow to return the minimum number 3e 0 array jsjs math max arrayjavascript find max in arrayarray javascript get max valuejavascript solution to find the max sum in an arrayhow to use max in javascritpnodejs find maxhow to find highest value in javascriptfind max in arrayfind min and max in array javascriptnumber max javascriptfind max javascriptjavascript find min and max element arrayjs maximum value in arrayfunction max 28arr 29 javascriptmaxvalue array javascriptjs get highest value max in arraymath maxjavascript max of an arraymath max array javascriptjavascript math method to return the highest numberarray functions javascript max and minhow to find and print max in array javascriptjavascript max in array with classmin max in arrayget max value in arrayget max in javascript arrayjs max value from arrayfind lowest number javascriptjavascript get max from listhow to get the highest value in an array javascripthow to return the max and min of an array in javascriptmin of array in jsoutput of math max in javascriptjs array having maxmath max array jsjs array highest and lowest valuejavascript set max size arrayfind array max element functionfind max number from the arrayarray max value in javascriptjs array maxjs math max from arraymax number array javascriptfind max index in array javascriptmake max number using arrayhow to get largest number in array javascripttake one max value from all arrays jsmax number in javascripthow to get the maximum value from an array in javascriptmax number javascript functionjs find max arraymax in jsarray of 28 29 maxget max value of array object javascriptfind max from array javascriptmax javascirpt arrayhow to find max of array jsjs get the highest numberjs max of two numbersget the maximum number in the array in jsjavascript maximum functionjavascript math max arraystore the highest geenrated number javascriptmax elements in array javascriptjavascript array min 2fmaxmax element of array in javascriptmax arr jscreate array of max length 4 javascriptmaximum size of array in javascriptmath max in javascriptarray max element javascriptjavascript highest and lowest numberstring of separated numbers and return the highest and lowest number javamath max methodhow to do math max on a string jscalling math min on an arraymax value from arraymax 28 29 function jsreturning min and max numbers from an arrayarray find max number javascriptjs get max from arraymax from list javascriptget min max array javascriptjs array length maxhow to find max value in array javascriptmax list javascriptread array in javascript max minjs return the highest and lowest number