'Js function is not recognize in github page

I have uploaded my local project to github and turned it into github page.

All the functions are working properly in my localhost but, when I open the app via github page (this is repo for you to see code), it shows the error on console that the function calculateAmount() is not defined. See the screenshot

I have tried pushing the code to github again a few time to make sure it is not commit error. But, the error is still the same.

I have double checked the function name and it is the same.

I have no idea what is happening.

Please help.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source