rayaqin
rayaqin
KPCKevin Powell - Community
Created by filipniik on 12/4/2023 in #front-end
Chrome freezes/ crash when is try to open my index.html
Since you've encountered this issue, I think it might be worth it to take a second look and understand why the code didn't work exactly. Take this for example:
let a = 1;
a = a++;
console.log(a);
let a = 1;
a = a++;
console.log(a);
What would you expect to be logged to the console here, and why? The ++ operator increases the value of the variable by 1, but the whole expression a++ evaluates to the original value of a, which is 1, meaning a = a++ will in the end reassign a's value to be 1, after increasing it by 1.
10 replies
KPCKevin Powell - Community
Created by filipniik on 12/4/2023 in #front-end
Chrome freezes/ crash when is try to open my index.html
ah okay
10 replies
KPCKevin Powell - Community
Created by filipniik on 12/4/2023 in #front-end
Chrome freezes/ crash when is try to open my index.html
you do rep = rep++ instead of rep++
10 replies
KPCKevin Powell - Community
Created by filipniik on 12/4/2023 in #front-end
Chrome freezes/ crash when is try to open my index.html
Hi Could you paste in your JS code here? In the #how-to-ask-good-questions guide you can find the right way to format code. Most likely you have an infinite loop going there somewhere. Maybe a while loop?
10 replies
KPCKevin Powell - Community
Created by DimitriUI on 11/29/2023 in #front-end
EM and REM scaling in different resolutions
afaik if you want your fonts to be dependent on the screen size, you need more than just using rem or em. Neither of them are directly connected to the screen size like that.
48 replies
KPCKevin Powell - Community
Created by Brian R on 11/28/2023 in #front-end
Infinite Scroll...
No description
5 replies
KPCKevin Powell - Community
Created by mb8504. on 11/23/2023 in #os-and-tools
Code Review Services for Beginner
I love the js slam poetry phrase 😄
5 replies