Open sultanassi95 opened 6 years ago
In your code, I have noticed that you are using == to perform equality boolean operations. Meanwhile, it's better to use the strict comparison operator ===
==
===
For instance: https://github.com/FACG5/Later-team/blob/aaf09e86bb9ef670f8be49789e2e8d704cffb617/puplic/js/index.js#L7
This should be: if (xhr.readyState === 4 && xhr.status === 200) {
if (xhr.readyState === 4 && xhr.status === 200) {
Get used to it, it's powerful, to know the difference between these two, check this out
Hi,
In your code, I have noticed that you are using
==
to perform equality boolean operations. Meanwhile, it's better to use the strict comparison operator===
For instance: https://github.com/FACG5/Later-team/blob/aaf09e86bb9ef670f8be49789e2e8d704cffb617/puplic/js/index.js#L7
This should be:
if (xhr.readyState === 4 && xhr.status === 200) {
Get used to it, it's powerful, to know the difference between these two, check this out