Method Returning a Value

Add a method double to the class Counter that takes a value parameter and returns it multiplied by 2.
JavaScript
Console