quick-links

Total phone bill

During the codeX bootcamp you had to create a totalPhoneBill function.

The instructions were are follows:

Write a function called totalPhoneBill that takes in a string parameter that contains calls made and sms's sent seperated with commas. Calculate the total bill for the data provided.

In the string call, sms, call, sms, sms there are 2 calls and 3 sms’s.

The cost is:

We will now use this scenario to learn how to use JavaScript in the browser to create interactive screen widgets using the DOM.

Four widgets to build

There are four different total Phone Bill widgets that you need to build. Use the JSBins below as a starting point.

Widget name. JSBin link
Calculate Bill https://output.jsbin.com/tipojox
Text Input Bill https://output.jsbin.com/nocisoc
Radio button bill https://output.jsbin.com/giqetip
Bill with settings https://output.jsbin.com/fulemo

Screencasts to watch

Let us know at mentors@projectcodex.co is you want the videos via WhatsApp.