Typeerror Assignment To Constant Variable Solved Javascript