Created
July 28, 2014 18:05
-
-
Save scalvert/cc246d7d22a20011759f to your computer and use it in GitHub Desktop.
Mobify Technical Evaluations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Instructions: | |
Implement the structure that makes this code runnable. To read the output, simply write | |
the result of the shout call to the console. You can use the developer tools to view | |
the result of the console call. | |
The result of the shout call should be "MOBIFY", without quotations. | |
How many different ways can you modify your syntax to make this code work? | |
*/ | |
var person = new Person(); | |
person.shout("mobify"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Instructions | |
You have been entrusted with creating the 'final countdown' timer for the next space shuttle launch. | |
Being an enterprising front-end developer you chose to write this application in JS so that all of | |
your NASA buddies can see it online. | |
Unfortunately, you seem to have encountered a bug in your countdown implementation. Can you figure | |
out what is wrong with the code as implemented and fix the issue? | |
*/ | |
function run() { | |
var output = $('.output'); | |
for(var i = 10; i > 0; i--) { | |
setTimeout(function() { | |
console.log(i); | |
}, (10-i)*1000); | |
} | |
} | |
run(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment