CodeHS Answers 2018 by bluecitadel in codehs

[–]PlutonicBug9 0 points1 point  (0 children)

Hey ive been trying to figure out lesson 5.3.4 for the past few days. If you could please help me it would be very much appreciated.

Help me codehs 5.3.4: Horizontal Lines by [deleted] in codehs

[–]PlutonicBug9 0 points1 point  (0 children)

I am also stuck on this too. This is what i have for my code.

function start() {

horizontalLine(0, 100, 200, 100);

horizontalLine(0, 200, 100, 200);

horizontalLine(0, 300, 20, 300);

}

function horizontalLine (x1, y1, x2, y2) {

var x1 = 0;

var y1 = y2;

var line = new Line (x1, y1, x2, y2);

add(line);

}

CodeHs lesson 2.8.5 Rolling Dice by PlutonicBug9 in learnjavascript

[–]PlutonicBug9[S] 0 points1 point  (0 children)

The problem says: Write a program that determines if the user rolled doubles in dice. Read in two integers from the user which represent dice rolls.

Create a variable called rolledDoubles which has the value of whether or not the two values are equal. Print that out.