Code To Go

Code To Go

Find updated snippets for common JavaScript use cases

45 followers

Code to go helps developers learning JavaScript find up to date, accurate and ready to use snippets of JavaScript code for common use cases.

Code To Go gallery image
Code To Go gallery image
Code To Go gallery image
Code To Go gallery image
Launch Team

What do you think? …

Navid Mirzaie Milani
This is really nice! i already added to my fav!.
Jad Joubran
@navidmirzaie I'm glad you like it!
EmbedAPI
@jadjoubran you're welcome :)
Rob Moore
Just a heads up on your featured iteration example on Javascript array iteration- "For...in" loops are generally NOT recommended for arrays because the order is not guaranteed (which is generally important for arrays). I don't want anyone to get a bad first impression of the product just because of the choice of example.
Jad Joubran
Hi @robmoore thanks for your comment! Did you mean "For .. of" or "For .. in"? I've used "For .. of" rather than "For ..in" or any other alternative because it's ES2015+ and because you can break from it using the break keyword whereas with forEach or .map you can't break from it. What do you think?
Mitch Lillie
@robmoore @jadjoubran I agree—the example of using "for...of" is nice, but needs to specify "when the order is not important". From a performance standpoint, to iterate over an array and keep the order preserved, a plain old "for" loop is the best, though it's uglier
Nate Davis
Love the design, looks great on my phone. Looking forward to using this. Thanks for the awesome resource.
Jad Joubran
@nate_davis we're glad you like it :D

Do you use Code To Go?