Quotes help make search much faster. Example: "Practice Makes Perfect"

Friday, December 7, 2012

LearnStreet Javascript Lesson 5 Exercise 2


//sample solution


function max(a, b, c) {
    var maxSoFar = a;
    if (b>a && b>c) {
        maxSoFar = b;
    }
    if (c>b && c>a) {
        maxSoFar = c;
    }
    return maxSoFar;
}

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts