Codecademy Javascript Cheat Sheet



Congratulations on completing your project!

Functions are one of the fundamental building blocks in JavaScript. A function is a reusable set of statements to perform a task or calculate a value. Functions can be passed one or more values and can return a value at the end of their execution. In order to use a function, you must define it somewhere in the scope where you wish to call it. Collection of cheat sheets(HTML, CSS, JS, Git, Gulp, etc.,) for your frontend development needs & reference - logeshpaul/Frontend-Cheat-Sheets.

Compare your project to our solution code and share your project below! Your solution might not look exactly like ours, and that’s okay! The most important thing right now is to get your code working as it should (you can always refactor more later). There are multiple ways to complete these projects and you should exercise your creative abilities in doing so.

This is a safe space for you to ask questions about any sample solution code and share your work with others! Simply reply to this thread to get the conversation started. Feedback is a vital component in getting better with coding and all ability levels are welcome here, so don’t be shy!

About community guidelines: This is a supportive and kind community of people learning and developing their skills. All comments here are expected to keep to our community guidelines

How do I share my own solutions?

  • If you completed the project off-platform, you can upload your project to your own GitHub and share the public link on the relevant project topic.
  • If you completed the project in the Codecademy learning environment, use the share code link at the bottom of your code editor to create a gist, and then share that link here.

Do I really need to get set up on GitHub?
Yes! Both of these sharing methods require you to get set up on GitHub, and trust us, it’s worth your time. Here’s why:

  1. Once you have your project in GitHub, you’ll be able to share proof of your work with potential employers, and link out to it on your CV.
  2. It’s a great opportunity to get your feet wet using a development tool that tech workers use on the job, every day.

Not sure how to get started? We’ve got you covered - read this article for the easiest way to get set up on GitHub.

Best practices for asking questions about the sample solution

  • Be specific! Reference exact line numbers and syntax so others are able to identify the area of the code you have questions about.

Codecademy’s Code Year, a program dedicated to teaching people Javascript over 2012. Unable to convince myseld people would follow through with this, I just dismissed the whole website. One friend even made the joke that resolutions like this are the 21st century version of signing up to the gym. However, once my cynicism faded, curiosity got the best of me and so I decided to see what they’ve accomplished. It’s been a while since I’ve done some programming, so getting a refresher seemed like a worthy adventure.

After spending a few days going through the existing lessons, a few compelling aspects of Codecademy really stood out:

Codecademy Javascript Cheat Sheet Free

Javascript
  • One Spot: There is no for context switching between book and screen or screen and other app. The lesson and the coding area are located next to each other, making it easier to follow the assignment and maintain focus.
  • Development Environment: There is no environment to set-up, it’s self-contained. Yes, I know they use Javascript so this isn’t really a major issue, but once again though, having the coding area next to program output is an incredible time-saver.
  • Q&A: Hints are embedded in each lesson and always a click away. If that doesn’t help, the Q&A community will help you work through most problems.
  • Time: Each course has multiple sections, but they only require a few minutes each. Since your progress is saved, it’s simple to complete one quick lesson, go do something else, and come back later.

Codecademy is still a start-up and therefore still evolving. So while I’m going to be patient with them, there are a few areas could use some improvement:

  • Lessons Quantity: There are just too few. This should rapidly increase in the near future, but right now, it’s a pain to get on a roll and then have to stopand wait for the next lesson set to be released.
  • Cheat Sheets: It’s easy to forget something you’ve only done once. So after learning a new concept, a handy (possibly printable) cheat sheet containing basic structure or grammar would be more helpful than going back to reference an old lesson.
  • Repetitive: There are areas where you constantly type in the same code over and over. While it does help drill home the point, it also can get annoying quickly.
  • Errors: Programming errors, especially for newbies, bring everything to a halt. Sadly, most errors don’t say, “You should put a semicolon here,” or “You didn’t close out that function with a bracket.” A short lesson here and there on error messages and what they actually mean would go a long way.
  • Curation: The Q&A is nice to have, but is going to be overwhelming as more people sign-up. People who post up questions are usually not clear in describing their problems, so its difficult to find the exact help you need. Given time, I hope they can curate or summarize some of the most common issues and the best answers.

Overall, I’m pleased with what I’ve seen. With the pieces they already have in place, it shouldn’t be too difficult to teach some fundamental programming concepts. As with any educational tool though, you get out what you put into it. There is no public resolution for Code Year needed to move forward, so get started and catch up with the rest of us. For a few minutes a day, it’s an easy investment to make.

Codecademy Javascript Cheat Sheet

Link: Codecademy