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

Friday, December 7, 2012

LearnStreet Javascript Lesson 7 Exercise 7


//sample solution

function iff(arr, item) {
    //your code here
    if(typeof(item)==="string" && arr.indexOf(6)>=0){
        arr.push(item);
    }
    return arr;
}
iff([4,5,6],"seven");

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts