[Javascript] Simple Solution (LinkedList)
If you have basic knowledge of object. Congrat! It should be a very easy problem for you in JS!\n\nvar BrowserHistory = function(homepage) {\n    this.page = {\
If you have basic knowledge of object. Congrat! It should be a very easy problem for you in JS!\n```\nvar BrowserHistory = function(homepage) {\n    this.page = {\n        url: homepage,\n        back: null,\n        next: null,\n    };\n};\n\nBrowserHistory.prototype.visit = function(url) {\n    this.page.next = {\n        url,\n        back: this.page,\n        next: null\n    };\n    this.page = this.page.next;\n};\n\nBrowserHistory.prototype.back = function(steps) {\n    while (this.page.back && steps) {\n        this.page = this.page.back;\n        steps--;\n    }\n    \n    return this.page.url;\n};\n\nBrowserHistory.prototype.forward = function(steps) {\n    while (this.page.next && steps) {\n        this.page = this.page.next;\n        steps--;\n    }\n    \n    return this.page.url;\n};\n```
['JavaScript']