A simple Solution
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```javascript []\nclass Calculator{\n    constructor(value){\n        this.result=value\n    }\n    add(value){\n        this.result+=value\n        return this\n    }\n    subtract(value){\n        this.result-=value\n        return this\n    }\n    multiply(value){\n        this.result*=value\n        return this\n    }\n    divide(value){\n        if(value===0){\n            throw new Error("Division by zero is not allowed")\n        }\n        this.result/=value;\n        return this\n    }\n    power(value){\n        this.result**=value\n        return this\n    }\n    getResult(){\n        return this.result\n    }\n\n}\n```
['JavaScript']