ZikaZaki/zikazaki-folio

Bugs: JavaScript

Opened this issue · 1 comments

JavaScript Bugs Found In Your Project:

Summary

After conducting a thorough debugging process in your Portfolio Project I found 2 bugs.

Here is the list of the found bugs in your JavaScript files:

  • In your assets/js/index.js file line number 111 you assigned projectsData[pid].name to h2.innerText variable without converting it to a string beforehand. Thus, some unexpected behaviors may occur. To fix this bug, you must convert the projectsData[pid].name.value.toString() to a string in the first place.
  • In your assets/js/index.js file line number 213, you called the createProjectCard(projId-1) and passed the projId-1 as a parameter without converting the projId to an Integer. Thus, some unexpected behaviors may occur. To fix this bug, you must convert the projId before passing it to the function using the JavaScript built-in function parseInt().

Hi, @GraceAbike. Thanks for your thorough debugging on my Portfolio Project. Regarding to the bug list you have commented, I will make sure to solve them following your suggestions. Thanks again for your time and cooperation.