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

Wednesday, December 5, 2012

Codecademy: Codeyear Building 'substring' (Part 1)


//sample solution

// Define substring here
var substring = function(input,start,end){
var i;
for(i=start;i<=end;i++){
console.log(input[i]);
}
};
// Write test here:
// Call substring, passing "lorem ipsum dolor" to `input`, `6` to
// `start`, and `10` to `end`.
substring("lorem ipsum dolor",6,10);

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts