Week 2
This week we will look into Javascript. Where HTML (a markup language) and CSS (stylesheets) define the structure and look and feel of a website, JavaScript is the programming language that makes your websites interactive.
Read about the basic programming concepts and refer to the JavaScript cheatsheet for a quick lookup of the core concepts of JavaScript. For those who prefer a video: An Explanation of the most important Javascript concepts
Most important concepts this week:
Programming
The exercises will be harder than the ones you are used to. Before you start coding any exercise it’s important to think very well about the following things:
the exact result you want to achieve. (read the assignment carefully)
what Js elements are needed to achieve this (look them up, and understand how they work exactly)
what syntax to use (remember Js is case sensitive) and make sure to understand when to use ( )’s and [ ]’s
Getting stuck is normal, and it’s a great way to really internalize concepts well. If you get stuck (and you will, hehe) do the following:
Read the documentation and error. Make sure you understood the assignment well, and see what error is given. Your error can tell you alot about what type of problem there is with your code.
Search on Google. You will find that most coding questions have already been asked and answered before. Stackoverflow.com will probably come up first. (it’s one of the best sites on solving coding problems)
Ask us on Gitter, we’re glad to explain things to you and give you hints. We will not write your code for you.
Don’t be like this guy, if your stuck for a long time, take a break, get some fresh air and look at it again. Emotions only slow down your process of becoming a great coder.
Exercises about this weeks concepts:
Answer these questions to test your understanding of the key concepts of this week:
When do you need to use the .split() property?
When do you need to use the .join() property?
When do you need to use a loop?
What is a variable?
What is a string?
What is a array?
What is the syntax for all above mentioned words?
What is a function?
What is a loop, and when do you use it?
What type of loops are there?
What is JSON?
Basic JavaScript (all exercises)
Object Oriented and Functional Programming (All exercises)
Basic Algorithm Challenges:
Reverse a String
Factorialize a Number
Check for Palindromes
Find the Longest Word in a String
Title Case a Sentence
Return Largest Numbers in Arrays