Add a Delivery Charge
Write calculate_order_total(price_text, delivery_charge). Convert the valid numeric price text to a number, add the delivery charge, and return the total.
Examples
["25",10]35
Write calculate_order_total(price_text, delivery_charge). Convert the valid numeric price text to a number, add the delivery charge, and return the total.
["25",10]35Optional website statistics, Google Analytics/Clarity and advertising (Meta/Google) help measure and support this free site. Your choice does not limit learning. Privacy policy.
These services may use cookies and receive browsing and device information. Change your choice later from the Privacy Policy page.