- logical operators (AND ,OR, NOT).
- Ternary operator.
- The following String methods:
- Let’s now learn what a method is: a method is a bit of functionality that is built into the language or into specific data types. In the previous W3Schools exercise, you learned a few methods that can be used on strings, such as
search. However there a lot more methods that can be use on strings. An exhaustive list can be found here: String methods.
Up until now we haven’t done much with our programming. We have told the computer to do some math but the the essence of programming is teaching the computer how to make decisions. In other words we need to tell the computer when to do certain things. And the way we do it is with the conditionals.
So now it is time to have fun!
Logical Operators you will learn about logical operators. (Dedicate at least 1 hour on this material)
Making decisions in your code — conditionals provides several interesting examples of how you could use it building websites. (Estimated reading, practice time and completion of exercises: approx. 10 hours)
Conditional branching: if, ‘?’ covers the same basic concept (read through it as a review!) Furthermore it offers the usual ‘tasks’ at the bottom of the page!
BOOKMARK THIS: This last resource has been created by Tania Rascia. Tania is one of the best online educators when it comes to Frontend and web technologies, so make sure to follow here on twitter, join her newsletter and definitely bookmark her website which contains a lot of amazing tutorials and posts. Whenever you find yourself troubled or tangled up in a difficult concept, search Tania’s posts and tutorials for it. Chances are, you will find yourself a clear explanation.
In order to give you more practice and more exercises to play with we have created ome repl.it exercises.
Make sure that you do the exercises in the given order.
run at the top will run the code. Read all directions, watch the terminal, and read all the errors. Don’t forget to use
Make sure that you save your solutions as you will be asked to work on them later on in the course. Also, you will need to create an account at repl.it and fork the exercises in order to complete them.
Your instructor will share a link to the assignment repository. Work on your assignment and submit your Pull Request link in the Quiz below.
In this section you can find a lot of helpful links to other content. This is a supplemental material for you if you want to dive deeper into some concepts.
Take a 10 to 15 minutes break and watch The Net Ninja’s Regular Expressions Tutorial. Don’t worry if you feel overwhelmed by the concept of Regular Expressions as it’s one of the most difficult and awkward computer languages. All that we want at this point, is for you to gain some basic understanding of how this pattern matching language works and become familiar with this undeniably powerful feature of most programming languages.
If you feel comfortable, continue to this site and practice yourself with some
mediumpattern matching tasks.
Estimated viewing and coding practice time: approx. 3 hours