Skip to content

Create Four Math Variables#21

Open
ASPhillips8 wants to merge 1 commit into
learn-co-curriculum:masterfrom
ASPhillips8:arithmetic_asp
Open

Create Four Math Variables#21
ASPhillips8 wants to merge 1 commit into
learn-co-curriculum:masterfrom
ASPhillips8:arithmetic_asp

Conversation

@ASPhillips8
Copy link
Copy Markdown

Create multiply variable that equals 62. Create random variable that is greater that 0. Create Mod variable that equals for. Create max variable that has max of 20.

Comment thread index.js
const multiply = num1 * num2;

// Write your code here No newline at end of file
const random = Math.floor(Math.random()*10) + 1;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const random = Math.floor(Math.random()*10) + 1;
const random = Math.floor(Math.random() * 10) + 1;

Comment thread index.js
const num4 = 3;
const mod = num3 / num4;

const max = Math.max(1,4,12,16,20); No newline at end of file
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const max = Math.max(1,4,12,16,20);
const max = Math.max(1, 4, 12, 16, 20);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants