Skip to content

Instantly share code, notes, and snippets.

@bluepnume
Last active June 13, 2017 05:28
Show Gist options
  • Save bluepnume/62ef8720823f9e4982a8c810a8a60ab5 to your computer and use it in GitHub Desktop.
Save bluepnume/62ef8720823f9e4982a8c810a8a60ab5 to your computer and use it in GitHub Desktop.
// 1. Create a web form with a text box and a button. When the button is pressed, it should output a base64 encoded version of the text onto the page
// 2. Implement Array::map()
// 3. Implement Array::forEach()
// 4. Create a web form with a text field and a button. I should be able to enter a new word, press the button, and it should add my word to the page and keep all of the words that have been added in alphabetical order.
// 5. Create a 3x3 grid on the page and let me click on each grid element. This should toggle each square between black and white.
// 6. Write a delay(x) function which returns a promise which is resolved in x seconds
// 7. Write a hello(x, person) function which uses delay(), and returns a new promise which waits x seconds then says hello to the person
// 8. Create a Button component in react that I can render on my page. I should be able to choose the color of the button, and I should be able to pass a click handler to the button.
// 9. Implement a bind(func, context) function which works the same way as Function::bind
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment