Nelio Mota Class Notes April 26



state table -> sw1, sw2, sw3 / on, off

video -> Flexbox vs. Grid - a simple example to start with

Random picture generator

imageArray [ 1.jpg, 2.jpg, 3.jpg, .....]

image and button -> event

newRandom

check the console -> F12

image.setAttribute("src", array[randomNum]); // image.style.width = randomNum * 50 + "px"; // console.log("image.style.width", image.style.width) // console.log("image: ", array[randomNum])

pictures of class