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

Friday, December 7, 2012

LearnStreet Javascript Lesson 4 Exercise 7


//sample solution


function triangleArea(base, height) {
    /*Complete the function body below to return the area of a
      triangle with the given base and height.*/
    return (0.5)*base*height;
}
triangleArea(2,4);

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts