Jump to content

Looping structure


debatosh89
 Share

Recommended Posts

Hi All,

 

Can you please provide me a looping structure in javascript

where a person is charged $2/10kb i.e, for 10KB data usage he will be billed $2 and $2 for next 10KB and so on .

 

For e.g If a customer use 0.1KB-10KB he wiil be charged $2.

for anything more than 10KB but less than 20KB he will be charged $4 and so on....

 

 

Thanks in advance :Happy:

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...