@dewyrag
Posted
Very nice, can you tell me how you learned JS? I just started the freecodecamp javascript section and its so confusing. all i understand are variables
hi there, @dewyrag, long time no see! ๐
How did I learn JS? ๐ค
I have no idea, tbh. When I started I was looking at a simple eventListener
as if it was a serial-killer. I had no idea what I was doing. But I stayed proactive, tried to somehow build something (anything). I actually learned from FreeCodeCamp first, but it was confusing indeed.
Then I started to read some books about programming in general, also started to read docs (but I wouldn't recommend learning by reading docs only). And after a while stuff just started to click somewhere back there. I guess if you do it you gotta get better at it at some point.
And I decided to get myself into computer science, and it was veeeery difficult (I'm still doing it), but it helped to kinda make things clear.
I'd recommend you to just stick with the basics first, practice them.
Stuff you should get into first:
- loops
- conditional statements
- data types and how to work with them
- basic webdev functions and methods like
eventListener
,forEach
etc.
I can't rlly explain general things like this, but if you have any more specific questions feel free to ask.
Hope this helped ๐
@dewyrag
Posted
thankyou for the reply, im trying to complete the faq accordion but i dont know how to make it interactive what do you think i need to learn to complete it? also do you think the 30 day learn javascript leetcode is a good place to learn? @kodan96
@dewyrag
I don't think doing LeetCode is a good idea at the beginning.
in FAQ you need to loop through the sections with a forEach()
loop and listen to click events. within the eventListener
you toggle the two icons and the corresponding answer. you can check my solution if you want, but I used jQuery to complete it, so the syntax of my code is different.