Video Streaming Plans

Published by er0s in

Given a class for a BasicPlan, write the classes for StandardPlan and PremiumPlan which have class properties of the following:

BasicPlanStandardPlanPremiumPlan
canStream
canDownload
hasSD
hasHD
hasUHD
124numOfDevices
$8.99$12.99$15.99price

Examples

BasicPlan.hasSD ➞ true 

PremiumPlan.hasSD ➞ true

BasicPlan.hasUHD ➞ false

BasicPlan.price ➞ '$8.99'

PremiumPlan.numOfDevices ➞ 4

Notes

  • Try to extend the classes to complete the challenge! If you're unsure what that means, try checking out the JavaScript class tutorials in the Resources tab.
Watch a quick demo on how Edabit works.