Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .canvas
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
:lessons:
- :id: 73911
:course_id: 3297
:canvas_url: https://learning.flatironschool.com/courses/3297/assignments/73911
:type: assignment
31 changes: 31 additions & 0 deletions .github/workflows/canvas-sync-html.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Sync with Canvas HTML

on:
push:
branches: [master, main]
paths:
- "README.md"

jobs:
sync:
name: Sync with Canvas

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6

- name: Install github-to-canvas
run: gem install github-to-canvas

# Secret stored in learn-co-curriculum Settings/Secrets
- name: Sync from .canvas file
run: github-to-canvas -a -lr --forkable --contains-html
env:
CANVAS_API_KEY: ${{ secrets.CANVAS_API_KEY }}
CANVAS_API_PATH: ${{ secrets.CANVAS_API_PATH }}
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# JavaScript Fundamentals: Arithmetic Lab
# Review: Arithmetic Lab

## Learning Goals

Expand Down Expand Up @@ -416,8 +416,6 @@ rely on the test failure messages to guide your code.
4. Create a variable called `max` that finds the highest number in a set; the
value returned should be `20`.

![Good luck](https://user-images.githubusercontent.com/17556281/28846833-e671480c-76da-11e7-9285-17b5c592e065.gif)

## Resources

* MDN
Expand Down
10 changes: 9 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
let num1 = 31;
let num2 = 2;
let multiply = num1 * num2;

// Write your code here
let random = Math.floor(Math.random() * 10) + 1;
let num3 = 24;
let num4 = 5;
let mod = num3 % num4;

let max = Math.max(2,3,20);
Loading