Computer Science, asked by usmankhan2k1990, 1 day ago

Write a javascript program to input electricity unit charge and calculate the total electricity bill according to the given condition:

Answers

Answered by Itzvaibhav007
1

Answer:

JS

Date. prototype. monthDays= function(){

var d= new Date(this. getFullYear(), this. getMonth()+1, 0);

return d. getDate();

}

function getSlab(sDate,eDate) {

var slab = 0;

if(sDate. getMonth() === eDate. getMonth

Similar questions