Find the errors in the following
1.)
| # User list holds a list of names | |
| # and their shopping items | |
| # Expecting [name, [item1, item2]] style | |
| user_list = [] | |
| # Prompting the user if they want to start | |
| puts "Would you like to start a nested list?[y/n]" | |
| response = gets.chomp |
| # ,o888888o. 8 8888 88 8 8888 8888888888',8888' | |
| # . 8888 `88. 8 8888 88 8 8888 ,8',8888' | |
| # ,8 8888 `8b 8 8888 88 8 8888 ,8',8888' | |
| # 88 8888 `8b 8 8888 88 8 8888 ,8',8888' | |
| # 88 8888 88 8 8888 88 8 8888 ,8',8888' | |
| # 88 8888 `8. 88 8 8888 88 8 8888 ,8',8888' | |
| # 88 8888 `8,8P 8 8888 88 8 8888 ,8',8888' | |
| # `8 8888 ;8P ` 8888 ,8P 8 8888 ,8',8888' | |
| # ` 8888 ,88'8. 8888 ,d8P 8 8888 ,8',8888' |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>ATM</title> | |
| <meta charset="utf-8"> | |
| <link rel="stylesheet" href="atm.css"> | |
| <script src="atm.js"></script> | |
| </head> | |
| <body> | |
| <div id="content"> |
##jQuery
###Basics
###Select elements and add property
$('#topsquare').addClass('white-text');
| <html> | |
| <head> | |
| <title>Puppies</title> | |
| <link rel="stylesheet" type="text/css" href="puppies.css"> | |
| <script src="puppies.js"></script> | |
| </head> | |
| <body> | |
| <center> | |
| <div class="top"> | |
| <h1>Puppies - wait, is that a puppy?! </h1> |
| // name_of_obj.name_of_key_in_object => value_associated_with_that_key | |
| var board = [ | |
| [0, 0, 0], | |
| [0, 0, 0], | |
| [0, 0, 0] | |
| ]; | |
| // Variable to store the winning player. | |
| var winningPlayer= 0; |