0
0
No-Codeknowledge~10 mins

Invoice generation in No-Code - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to add the customer's name to the invoice.

No-Code
invoice.customerName = [1]
Drag options to blanks, or click blank then click option'
A"John Doe"
B12345
Ctrue
Dnull
Attempts:
3 left
💡 Hint
Common Mistakes
Using numbers or boolean values instead of a string.
Forgetting to put quotes around the name.
2fill in blank
medium

Complete the code to set the invoice total amount.

No-Code
invoice.totalAmount = [1]
Drag options to blanks, or click blank then click option'
A100.00
Btrue
C"100 dollars"
D"one hundred"
Attempts:
3 left
💡 Hint
Common Mistakes
Using text instead of a number for the amount.
Including currency words inside quotes.
3fill in blank
hard

Fix the error in setting the invoice date.

No-Code
invoice.date = [1]
Drag options to blanks, or click blank then click option'
A2024.04.27
BApril 27, 2024
C27/04/2024
D"2024-04-27"
Attempts:
3 left
💡 Hint
Common Mistakes
Using date formats that are ambiguous or not standard.
Not putting the date inside quotes.
4fill in blank
hard

Fill both blanks to create a dictionary entry for an item with its price.

No-Code
invoice.items = {"[1]": [2]
Drag options to blanks, or click blank then click option'
AitemName
B19.99
Cquantity
D5
Attempts:
3 left
💡 Hint
Common Mistakes
Using quantity as a key instead of item name.
Putting numbers inside quotes.
5fill in blank
hard

Fill all three blanks to create an invoice summary with customer, total, and paid status.

No-Code
summary = {"customer": [1], "total": [2], "paid": [3]
Drag options to blanks, or click blank then click option'
A"Alice"
B250.75
Cfalse
Dtrue
Attempts:
3 left
💡 Hint
Common Mistakes
Using numbers for customer names.
Putting numbers or booleans inside quotes.
Mixing up true and false values.