The Modern JavaScript Bootcamp (2019) - Build an Expense Tracker

The Modern JavaScript Bootcamp (2019) - Build an Expense Tracker

Assessment

Interactive Video

Information Technology (IT), Architecture, Business

University

Hard

Created by

Quizizz Content

FREE Resource

The video tutorial guides viewers through implementing three functions in a JavaScript expense manager: add income, reset account, and get account summary. It provides a challenge to apply learned concepts, outlines the purpose of each function, and demonstrates their usage in a script. The tutorial emphasizes testing and debugging to ensure functionality, preparing viewers for more advanced JavaScript projects.

Read more

7 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary purpose of the 'add income' function in the expense manager?

To subtract expenses from the account

To print a summary of the account

To add a specified amount of income to the account

To reset the account balance to zero

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which argument is NOT required by the 'reset account' function?

The amount of income to add

The account to reset

The static value to set expenses

The static value to set income

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the 'get account summary' function return?

A list of all transactions

A string summarizing the account's balance, income, and expenses

The total income added to the account

The total expenses deducted from the account

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens when the 'reset account' function is called?

The account's name is changed

The account's balance is doubled

The account's income and expenses are set to zero

The account's transactions are listed

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why is it important to test the functions after implementing them?

To verify that the functions work as expected

To ensure the code is formatted correctly

To check if the functions are named correctly

To confirm the functions are documented

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the demonstration, what is the first step after adding income to the account?

Resetting the account

Adding an expense

Deleting the account

Getting the account summary

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the final step in the demonstration of using the functions?

Adding more income

Resetting the account

Printing the account summary again

Adding another expense