Steve js practice exercise and not so successful bonus question

links: http://imanas.shanghai.nyu.edu/~ds5665/js/index.html             http://imanas.shanghai.nyu.edu/~ds5665/js/bonus.html   soooo there is a suprise in the js practice so i kinda don’t want to  reveal it now also about the bonus question i didn’t find the scroll function so i merely tested it with a button  and also i believe mt coding was right about the js but my html just didn’t seem to be linked with the js, and the console didn’t make sense to me coding-of-the-bonus-question

JS recitation exercise – Julia Riguerra

http://imanas.shanghai.nyu.edu/~jhr360/week4/

Through this exercise I became more comfortable with the button function in JavaScript as well as if/else loops, which I had seen before in Python but had trouble understanding how to use them in JS. Formatting the images in CSS was easy enough with <div> tag, but I initially had no idea where to begin with getting the button to work. I first set up a counter that would increase by 1 every time the button was clicked in order to keep track of which panel was active, and made sure to log the counter into the console. I then used if/else loops to switch between opacities based on the counter. However, I was not able to solve an issue I have with the opacities not changing when the button is clicked only once.

Javascript Documentation Week 3 – Justin Chen

Link: http://imanas.shanghai.nyu.edu/~jc8017/Week%203/index.html

Getting the right pictures to make it opaque is the real challenge when doing this assignment. I implemented a round robin style method where each picture is associated with a single number. There is a variable that tracks the current picture by having it assigned the number of the current picture. This variable tells which picture to “light” up. As the user presses the walk button, the variable increases in value. Once it reaches the max, the variable will be automatically set to zero. Thus, it comes back full circle.

W04-exercise-Clover

http://imanas.shanghai.nyu.edu/~cl4690/w04-exercise-JS-Conditionals/index.html

This is really an interesting exercise. The most difficult part for me is the ruction part. At first, I don’t know how to get the other two pictures disappear, and professor Leon helped me with that and gave me a hint to use function to count the number of the click which helped me finally found it out. I was so happy when I figure the whole things out!!