Fix Teen
Given 3 int values, a b c, return their sum. However, if any of the values is a teen -- in the range 13 to 19 inclusive -- then that value counts as 0, except 15 and 16 do not count as a "teens" and should therefore still be added.
Given 3 int values, a b c, return their sum. However, if any of the values is a teen -- in the range 13 to 19 inclusive -- then that value counts as 0, except 15 and 16 do not count as a "teens" and should therefore still be added.
Choose a past web-based exercise or project (not a command-line project) and spice it up with some CSS transitions and/or animations. Just try not to go overboard, as it can make your site a lot tackier.
Go in to your Penguins vs. Communists project and add unit tests using: * The Karma test runner * The Jasmine test framework * PhantomJS as a headless browser Your unit tests should cover: * The sendNuke function * The onHit function * The onMiss function
Write a function that returns how many times the string "code" appears in array. function countCode(arr) { } //Output: // countCode(["code", "code", "cool"]) returns 2 // countCode(["code", "code", "cool", "code"]) returns 3 // countCode(["coe", "ode", "cool", "pool"]) returns 0 Step it up Write a function that returns the number of times
All you have to do with this exercise is duplicate your Mario's Pest Control project and convert everything that was originally in vanilla (plain) JavaScript to use the jQuery library instead. Rename the copy of the Mario's Pest Control folder you make to jquery-pest-control and put it in your exercises