Skip to content

Commit fb5801b

Browse files
committed
Update class_3.js
deleted extraneous exercises
1 parent 669d8f8 commit fb5801b

1 file changed

Lines changed: 24 additions & 49 deletions

File tree

class_3.js

Lines changed: 24 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,26 @@
1-
// var billAmount = 666;
2-
// function gratuity(somethingelse){
3-
// return somethingelse * .2
4-
//
5-
// }
6-
//
7-
// console.log(gratuity(billAmount))
8-
//
9-
// function totalWithGrat(amount) {
10-
// return gratuity() + amount;
11-
//
12-
// console.log
13-
// }
14-
// var hands = ["rock", "paper", "scissors"];
15-
// function getHand() {
16-
// var myIndex = parseInt(Math.random()*10)%3;
17-
// return hands[myIndex];
18-
// };
19-
//
20-
// var playerOne = {
21-
// name: "mariah",
22-
// getHand: getHand
23-
// };
24-
//
25-
// var playerTwo = {
26-
// name: "minaj"
27-
// getHand: getHand
28-
// };
29-
//
30-
// function playRound() {
31-
// console.log(playerOne.name, playerTwo)
32-
//
33-
// };
34-
35-
36-
function outer(){
37-
var a = "what"
38-
var b = {"bucket"}
39-
40-
console.log(outer())
41-
42-
function inner (a,b) {
43-
var a = "why"
44-
var b = {"fuckit."}
45-
46-
}
47-
48-
inner(a,b);
49-
}
1+
2+
var hands = ["rock", "paper", "scissors"];
3+
function getHand() {
4+
var myIndex = parseInt(Math.random()*10)%3;
5+
return hands[myIndex];
6+
};
7+
8+
var playerOne = {
9+
name: "mariah",
10+
getHand: getHand
11+
};
12+
13+
var playerTwo = {
14+
name: "minaj"
15+
getHand: getHand
16+
};
17+
18+
function playRound() {
19+
console.log(playerOne.name, playerTwo)
20+
21+
};
22+
23+
24+
5025

5126
outer();

0 commit comments

Comments
 (0)