Skip to content
Advertisement

How would you add a time offset using the same name as the class name for the parameter

I need to fill out the method for the time offset but using the class name as a parameter name and I don’t know how to do it I have tried adding the variables together but I get errors saying “You can’t convert Time to an int”

So I have no clue on what to do, please respond soon thank you!

Error type:

JavaScript
JavaScript

Advertisement

Answer

You have to add up the corresponding parts of time:

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement