Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (8 sloc) 322 Bytes

Bring your JavaScript Slot Machine to Life

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);
Something went wrong with that request. Please try again.