Skip to content

Instantly share code, notes, and snippets.

@c0debreaker
Created March 24, 2015 22:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save c0debreaker/361576d80b928c5d81d7 to your computer and use it in GitHub Desktop.
Save c0debreaker/361576d80b928c5d81d7 to your computer and use it in GitHub Desktop.
var e = ['5+3','9+1','8+6','4+4','7+3'];e.forEach(function(eq){v=eq.split('+');a=parseInt(v[0])+parseInt(v[1]);b=parseInt(v[0])*parseInt(v[1]);console.log(b.toString()+a.toString())}) I put
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment