Sorting HTML table with JavaScript

Just revisiting an old solution, I thought I’d give it a facelift for it’s ~5 year anniversary! Plain Javascript (ES6) Does alpha and numeric sorting – ascending and descending Works in Chrome, Firefox, Safari (and IE11, see below) Quick explanation add a click event to all header (th) cells… for the current table, find all rows (except the first)… sort the rows, based on … Read more

Youtube api – stop video

You can’t control it if you embed it with an iframe. You have to use object embedding, like this: The rest of your code should generally work after that, although it may need to be updated to say: Also, have you seen the demo site? http://code.google.com/apis/youtube/youtube_player_demo.html

ES6: Create Strings using Template Literals – Freecodecamp

I tried solving below problem, passed 3 out of 4 conditions. I’m not able to find anymore errors in my code below. But still it says “failuresList should be an array containing result failure messages.” Link:https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/es6/create-strings-using-template-literals Problem:Use template literal syntax with backticks to create an array of list element (li) strings. Each list element’s text … Read more