Ask 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 would be nice.

+4
Answers (1)
  1. 23 February, 19:34
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers