Research JavaScript Methods
Learning Competencies
By the end of this activity, you should be familiar with:
- How to research a new concept.
- What a method is.
- At least two methods.
Summary
Now that you have had a go learning some basic JavaScript, let's learn about JavaScript methods and research some methods you can have in your toolkit!
Research
You will use Google a lot during your career, maybe almost every day. You will need to research how to do something, either for the very first time or because you've gone a long time without using something.
Writing a good search will come with practice. This is a good starting point: [programming language] how to [do a particular thing]
e.g. JS how to find array length or JS how to access object property
Through experience, you'll understand when a resource needs to be read carefully and when you can skim read just the relevant bits.
Often, you'll see the following sites in top search results:
- Stack Overflow is "a question and answer website for professional and enthusiastic programmers".
- Helpful articles can be found on both freeCodeCamp and Medium (on Medium this can take a bit of digging).
- w3Schools has beginner-friendly explanations of how things work (but sometimes the JS examples aren't great).
- MDN Web Docs has good, extensive examples, but the comprehensive documentation can sometimes seem challenging when you're a beginner.
Time Box
Challenge | Time |
---|---|
JavaScript Methods | 2.5 hours |
Research JavaScript Methods
Visit the javascript-methods repository on GitHub. Click the
Fork
button in the top right to create your own copy of this repo.From your command line, clone your copy of the repo down to your computer. The terminal command will look something like this:
git clone git@github.com:dev-academy-foundations/javascript-methods.git
- Open the cloned javascript-methods folder in your code editor. The instructions for this exercise can be found in the
README.md
of this folder.
Don't forget to save your progress and frequently use git add -A
and git commit -m "your message"
(with a more meaningful message) throughout the exercise.
- Once you have finished working on this exercise, remember to add, commit, and push your work to GitHub.