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

Friday, December 7, 2012

LearnStreet Javascript Lesson 4 Exercise 5


//sample solution


/*Write a function below called square that takes
   a number and returns its square.*/
function square(num){
    return num * num;
}
//test
square(5);

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts