Ask Question
30 June, 03:58

Does anyone happen to have the answer to the CodeHS Python Exercise 5.4.7: Categories. A version that is available to be copied and pasted would be nice.

+3
Answers (1)
  1. 30 June, 04:05
    0
    The code is given below

    var array = [3, 6, 2, 56, 32, 5, 89, 32];

    var largest = 0;

    / / Write your code below!

    for (var i = 0; i < array. length; i++) {

    if (array[i] > largest) {

    largest = array[i];

    }

    }

    console. log (largest);
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Does anyone happen to have the answer to the CodeHS Python Exercise 5.4.7: Categories. A version that is available to be copied and pasted ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers