I want to switch function when button \'historyBtn\' clicked in javascript. Here is the code:
const expr = \'\'; var history = "document.getEleme