4
Bubbles
8y

I'm still a beginner for programming, I got the basics (for JavaScript) down but I don't really know how or where to use it, like loops(for, do while), return, and stuff like that.

Going through the books and online exercises they just make you do the basics like loop a number 10 times to print out 0-9 or something like that. And the return keyword I usually forget about because I've never been told how I can actually use it for something.

I want to learn how I can use all of these and when I can use them, is there any books, videos, or courses I can look into? I'm sorry, this is probably a Sinbad question but I am just trying to get as much help as I can

Comments
  • 4
    There is massive amounts of tutorials online.

    But to get from pure examples to real understanding is helped if you have some goal you like to achieve.

    Also a classical way is to draw a flowchart in paper of what you like to do and in what order.

    Each box represents an action, write, or a decision, if, with arrows for yes and no, a loop, with one arrow for within and one when done.

    That way go can structure what you need before starting to write any code and you get a visual understanding on how all parts come together.
  • 1
    Sorting algorithms! Implement a bunch of them.
Add Comment