Week 4 Recitation – Walk Exercise – Nan

URLhttp://imanas.shanghai.nyu.edu/~js9686/w04-exercise-JS-Conditionals/index.html

Date: March 7 2019

Description:

Two problems aroused here:

if (clicking == 1){
     **************
} else if (clicking == 2){
     **************
} else if (clicking == 3) {
     **************
}else{
     clicking = 0;
}

a. I innitially used clicking = 1/2/3, but it failed: single = is for assigning, and double == is for comparing.

b. I changed the = into ==, but the number, according to consolog, goes “1, 2, 3, 4,  1, 2, 3, 4.” There is an extra “4.” I the realised that I shouldn’t use “else” at the last section because once it run into “else,” the clicking number has already reached “4.”

Week 4:Recitation – Jannie Z

http://imanas.shanghai.nyu.edu/~yz4970/week4/index.html

I encounter a lot problems when doing this exercise. First is adjusting the positions of the pictures. I forgot the “flex” function in css. Then I had difficulty in assigning numbers to a variable. After changing the order of the code, I succeeded in assigning right numbers to the variable each time we click the button. Then, I figured out that everything in Javascript only happens once. And everything else will rely on events. Every time an event is called, code inside that event will happen. 

Walking Recitation Exercise – Madi Eberhardt

Link: http://imanas.shanghai.nyu.edu/~mne234/week%204/w04-exercise-JS-Conditionals/index.html

I had a bit of trouble getting the opacity feature to work at the end, but figured it out and changed the “visibility” to have all my images with “opacity” instead for the style. I also had some trouble with the counter function, but was able to fix it after using the “if” and “else if” functions.

Walking Recitation Exercise-Jamie

http://imanas.shanghai.nyu.edu/~zw1745/Week4/index.html

I was stuck at adjusting the position first, then I realized my css file wasn’t even connected to the html file because it was within another file. Then my “opacity” function wasn’t working even though I inserted it correctly, with a few refresh on the webpage it somehow worked.

I used count clicks and if function, with else ifs like “click%3==1” to arrange the opacity of the pictures.