3 votes

Pick two random cards from a standard deck

There is a bug A return statement is missing when making the recursive call when the same card is picked twice. Don't use recursion to repeat an operation To repeat ...
  • 109k
2 votes

SetTimeout to populate Javascript Object while a function looped AJAX requests to get data

Initial Review thoughts Before addressing the main question I’d like to address a few points first. Variable declaration style It is nice that seriesData is ...
1 vote

Re-order table columns in HTML dynamically with Javascript

Start with the data in Javascript. Always sort the Javascript, never from the html table. Always create a new table. Throwing away the pre-existing table fantastically simplifies everything. I ...
  • 6,610

Only top scored, non community-wiki answers of a minimum length are eligible