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

Monday, December 17, 2012

LearnStreet Sample Solution to Lesson 8 Exercise 12



# Use the insert function on the array below so that it contains the numbers 1 to 10 in a sequence
# you will have to call the insert method multiple times

numbers = [1, 3, 5, 6, 7, 9, 10]
# your code here
numbers.insert(1,2)
numbers.insert(3,4)
numbers.insert(7,8)

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts