There are a lot of different ways to learn to code, and it really depends on what you're looking for in a resource. If you want a more traditional approach, sit down with a cup of coffee and a good ol' fashioned book. Below are some of our favorites for learning to code:
-"A Smarter Way to Learn JavaScript" by Mark Myers: We like this book because it breaks JavaScript down into small, manageable pieces. Myers does a great job of breaking down concepts so they're easy to understand, and then provides exercises to help you remember what you've learned.
"Head First JavaScript Programming" by Eric Fraser and Elisabeth Robson: This book takes a slightly different approach than the traditional book. It's designed to engage your whole brain by using puzzles, games, and other exercises to help you learn.
"Eloquent JavaScript" by Marijn Haverbeke: This one is for those of you who want to really dive deep into JavaScript. It covers everything from the basics to more advanced concepts, and is a great resource for those who want to understand how JavaScript works under the hood.
Of course, there are plenty of other resources out there (including some great ones right here on SitePoint!), so it really depends on what you're looking for. The best way to find the right resource for you is to explore and experiment until you find something that clicks.