freeCodeCamp Challenge Guide: Bring your JavaScript Slot Machine to Life

freeCodeCamp Challenge Guide: Bring your JavaScript Slot Machine to Life
0.0 0

#1

Let’s use the jQuery selector $(".slot") to select all of the slots.

Once they are all selected, we can use bracket notation to access each individual slot:

$($(".slot")[0]).html(slotOne);
$($(".slot")[1]).html(slotTwo);
$($(".slot")[2]).html(slotThree);

#2