Skip to content
EduMeFreeEduMeFree
  • الرئيسية
  • مسابقات ومنح
  • المناهج الدراسية
  • المقالات
  • الكورسات
EduMeFreeEduMeFree
  • الرئيسية
  • مسابقات ومنح
  • المناهج الدراسية
  • المقالات
  • الكورسات

#14 get total price task [level2]

  • Home
  • Lesson
  • #14 get total price task [level2]
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape

#14 get total price task [level2]

  • 21/12/2022
  • كوم 0
Javascript tasks Level 2 #14 get total price task [level2]

[level2] var example1 = getTotalPrice([ { product: “Milk”, quantity: 1, price: 1.50 } ]) // $1.50 var example2 = getTotalPrice([ { product: “Milk”, quantity: 1, price: 1.50 }, { product: “Cereals”, quantity: 1, price: 2.50 } ]) // $4.00 var example3 = getTotalPrice([ { product: “Milk”, quantity: 3, price: 1.50 } ]) // $4.50 var example4 = getTotalPrice([ { product: “Milk”, quantity: 1, price: 1.50 }, { product: “Eggs”, quantity: 12, price: 0.10 }, { product: “Bread”, quantity: 2, price: 1.60 }, { product: “Cheese”, quantity: 1, price: 4.50 } ]) // $10.40 var example5 = getTotalPrice([ { product: “Chocolate”, quantity: 1, price: 0.10 }, { product: “Lollipop”, quantity: 1, price: 0.20 } ]) // $0.30 console.log(example1) console.log(example2) console.log(example3) console.log(example4) console.log(example5)

Previous Lesson
Back to الكورس
Next Lesson
© 2026 - EduBlink. All Rights Reserved. Proudly powered by DevsBlink
EduMeFreeEduMeFree
Sign inSign up

Sign in

Don’t have an account? Sign up
Lost your password?

Sign up

Already have an account? Sign in
Login
Accessing this الكورس requires a login. Please enter your credentials below!

Lost Your Password?
Register
Don't have an account? Register one!
Register an Account

Registration confirmation will be emailed to you.