Bugs: JavaScript
Opened this issue · 1 comments
GraceAbike commented
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 number111
you assignedprojectsData[pid].name
toh2.innerText
variable without converting it to astring
beforehand. Thus, some unexpected behaviors may occur. To fix this bug, you must convert theprojectsData[pid].name.value.toString()
to a string in the first place. - In your
assets/js/index.js
file line number213
, you called thecreateProjectCard(projId-1)
and passed theprojId-1
as a parameter without converting theprojId
to anInteger
. Thus, some unexpected behaviors may occur. To fix this bug, you must convert theprojId
before passing it to the function using the JavaScript built-in functionparseInt()
.
ZikaZaki commented
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.