scrimba
Practical math
Monthly Expense Sheet - Generate and Display Month
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

Monthly Expense Sheet - Generate and Display Month
AboutCommentsNotes
Monthly Expense Sheet - Generate and Display Month
Expand for more info
index.js
run
preview
console
function roll(min, max, floatFlag) {
let r = Math.random() * (max - min) + min
return floatFlag ? r : Math.floor(r)
}

let startDay = new Date("3/15/2020")

function getNextDay(day) {
let nextDay = new Date(day)
nextDay.setDate(day.getDate() + 1)
return nextDay
}

// Generate an Array of all Days in the Month of a given date
function buildMonth(day) {}

// Write a function to get the number of days in a given month
function getDaysInMonth(month, year) {}

// Write a function to display the month
function displayMonth(month) {}
Console
/index.html
-6:08