Skip to content

my solutions#5

Open
danielstanojevic wants to merge 1 commit intopaircolumbus:masterfrom
danielstanojevic:my-solution
Open

my solutions#5
danielstanojevic wants to merge 1 commit intopaircolumbus:masterfrom
danielstanojevic:my-solution

Conversation

@danielstanojevic
Copy link
Copy Markdown

@jaybobo
Please check my solution.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cool. an optimization here is...

var cached = pets.length
for(var i=0;i<cached;i++){

theres also something important to remember here. if you don't specify var i in your loop you're declaring window.i which can cause all types of havoc.

@jaybobo
Copy link
Copy Markdown
Member

jaybobo commented Apr 11, 2015

looks good. 👍

see my comments.

@danielstanojevic
Copy link
Copy Markdown
Author

Thanks for reviewing and for the good advice.
On Apr 11, 2015 7:30 PM, "jaybobo" [email protected] wrote:

looks good. [image: 👍]

see my comments.


Reply to this email directly or view it on GitHub
#5 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants