Saurabh is not a software developer but has the right geek attitude โย get him to go from 0 to 100mph of crypto coding in just 3 quick exercises โย so that he can taste blood ๐
Exercise 1 โย not so boring html text
Login into https://codepen.io/ by connecting your github account with it.
Goto this pen - https://codepen.io/hugovila/pen/pymXvJ
Notice on top left that this is a "pen" by some user Hugo.
Click on the Fork button in the top menu to create a copy of this pen under your own codepen account.
This new pen, which is your own forked copy, will have a new link. (you will send this link to Sumeet in the last step)
Inspect all the HTML .. CSS .. and JS on the pen.
Make necessary changes such that
- output "Hello World!" .... becomes .... "This was just directly rendered!"
- output "Hello World!!!!!" .... becomes .... "This was created as a component that kept sitting in a variable and was rendered later on"
- output "Hello Hugo Vila!!!!!" .... becomes .... "Get ready for the crypto geek Saurabh!"
Send the link of the new pen to Sumeet after you have finished everything successfully AND have gotten some idea of how the things in this example were working. Then lets talk about what you understood. Followed by how what you learned is connected to crypto-apps-dapps smart contracts etcetera.
Exercise 2 โย sexy math and emojis
Play with the output of this pen, see what all stuff it does - https://codepen.io/claudz1/pen/QmdreV
Fork the pen to create your own.
Now, finish as many of the below changes as you can. You probably won't be able to finish them all. Thats okay --
- Make the reset button appear before the minus and plus button.
- Allow the minus button to decrement the counter to negative values.
- Limit the plus button to increment the counter value only upto the integer 4
- Change the minus button to a hand emoji pointing down, the plus button to a hand emoji pointing up, and change the reset button to a star symbol (or something else of your choice).
Here is some hint for the 4th task --