Skip to content

Commit

Permalink
fix int year of exp
Browse files Browse the repository at this point in the history
  • Loading branch information
towfiq-bK committed Oct 24, 2021
1 parent 70f785d commit c7eb4ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/towfiq.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ $(document).ready(function () {
monthOfExp = daysOfExp < 15 ? (monthOfExp + 1) : monthOfExp;
yearOfExp += monthOfExp/12;
monthOfExp = monthOfExp%12;
var totalExperience = yearOfExp + "Y " + monthOfExp + "M ";
var totalExperience = parseInt(yearOfExp) + "Y " + monthOfExp + "M ";
$("#currentYear").html(currentYear);
$("#totalExperience").html(totalExperience);

Expand Down

0 comments on commit c7eb4ac

Please sign in to comment.