Ask Question
14 July, 20:30

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.

+4
Answers (1)
  1. 14 July, 21:27
    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?
Find 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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers