Code To Go

Find updated snippets for common JavaScript use cases

get it
#3 Product of the DayDecember 15, 2017

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


  • Pros: 

    - Copy paste friendly


    - Lack of information of where something is applicable

    Why would you want to use this over say it'll usually end up in staggeration of information. The use-cases / snippets shared here may or may note apply to your use-case and if you knew what applies best to your use-case....? I do see a point in making a process out of this but this effort could be used to populate these questions over StackExchange or MDN and not fragment information further.

    Just a Random Person has used this product for one day.
  • Dan MooreVaporware

    it's focused on content only


    but this is where content goes to die

    coding content needs context -- thats why stackoverflow's system works

    Dan Moore has used this product for one day.


You need to become a Contributor to join the discussion - Find out how.
Nate Davis@nate_davis · Data Driven Designer
Love the design, looks great on my phone. Looking forward to using this. Thanks for the awesome resource.
Jad JoubranMaker@jadjoubran · Tech speaker & FullStack Teacher 🌍
@nate_davis we're glad you like it :D
Andy Parkhills@aparkhills · Application Developer
Great and clean UI! Search works smooth but Use Cases page needs categorization (ex: Syntax, Variables, Assignment, Strings, Numbers, etc.) in some kind of a possible tagging format.
Jad JoubranMaker@jadjoubran · Tech speaker & FullStack Teacher 🌍
@aparkhills makes sense, noted :D thanks!
Navid Mirzaie Milani@navidmirzaie · Front-end developer
This is really nice! i already added to my fav!.
Jad JoubranMaker@jadjoubran · Tech speaker & FullStack Teacher 🌍
@navidmirzaie I'm glad you like it!
EmbedAPI@embed_api · CEO @ Embed Anything
@jadjoubran you're welcome :)
Rob Moore@robmoore · Recent Oxford grad. DataVis & D3
Just a heads up on your featured iteration example on Javascript array iteration- "" 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 JoubranMaker@jadjoubran · Tech speaker & FullStack Teacher 🌍
Hi @robmoore thanks for your comment! Did you mean "For .. of" or "For .. in"? I've used "For .. of" rather than "For" 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@mitchlillie · Developer, SERPs
@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
Pierrick@pierrickgt · Front-end Developer at Meilleurs Agents
Love the idea but I would add more use cases to the homepage.
Jad JoubranMaker@jadjoubran · Tech speaker & FullStack Teacher 🌍
@pierrickgt Will do soon! thanks :D