I\'m facing problem in making simple CGPA calculator using JavaScript and the question is don\'t know why my code showing two times an output in console. Here is the code