About learning JavaScript


I started to learn web development from scratch and i run through HTML and CSS and Bootstrap 3 & 4 without any problem . When i came to JavaScript things are getting tough for me and i always forget about what I learned about it , any advices to code more efficiently ?