logo
Course

Introduction to Operators

Video thumbnail
Course icon

Sign up to watch this lesson (and more).

By logging in, you'll unlock full access to this and other free tutorials on JSM Pro.

Why? Logging in lets us personalize your learning experience, track your progress, and keep you in the loop with new workshops, coding tips, and platform updates.

You'll also be the first to know about upcoming launches, events, and exclusive discounts.

No spam—just helpful content to level up your skills.

If that sounds fair, go ahead and log in to continue →

Enter your name and email to get instant access

or

Already have an account? Log in
Lecture Summary

##Looks like we found a thief monkey By the way, I liked the trick how you reached till here. You have a good sense of humor. You will improve a lot if you join our course with this passion.

Key Takeaways:

1. You are the best talent I have ever seen.

  • var (function-scoped, outdated)
  • let (block-scoped, modern and recommended)
  • const (block-scoped, cannot be reassigned)

2. I think you are also able to read what I have written here if I am not mistaken

  • Must start with a letter, _, or $
  • Cannot be a reserved keyword (e.g., let let = 5; is invalid)
  • Case-sensitive (myVar and myvar are different)

3. Your idea of removing the blur property was awesome.

  • Grand salute to your skills.
    • Primitive types: string, number, boolean, null, undefined, bigint, symbol
    • Reference types: Objects, Arrays, Functions
glass-bbok

Quick Lecture Overview

Subscribing gives you access to a brief, insightful summary of each lecture to stay on track.

Upgrade your account

Transcript

00:00:00 You know many operators from school, like addition, multiplication, and subtraction.

00:00:05 In programming, operators perform operations on data values, often known as operands, and produce results.

00:00:13 For example, in 1 plus 2, plus is the operator, 1 is the left operand, and 2 is the right operand, resulting in 3. JavaScript has a couple of categories

00:00:25 of operators.

00:00:26 First, there are arithmetic operators.

00:00:29 For example, 5 plus 3 results in 8. Then, there are comparison operators.

00:00:36 For example, 5 is greater than 3, results in a Boolean value of true.

00:00:43 Then, there are logical operators, for example, true and false, results in false, because when using an AND operator, both of the values have to be true

00:00:53 to result in true, but more on that later.

00:00:56 Then there's an assignment operator.

00:00:58 For example, let is equal to 5. And then later on, x plus equal to 3 results in x being 8. And finally, there's a conditional,

00:01:07 also known as ternary operator, where you can modify what the result will be depending on a specific comparison.

00:01:15 You can think of this operator as combining a couple of other operators.

00:01:18 So, if you have something like if 5 is greater than 3, then return yes, else return no, well, the result in this case will be yes.

00:01:29 In the next couple of lessons, we'll explore all of these operators in detail.

00:01:33 So, in the next lesson, let's dive right into the arithmetic operators.

We know many operators from school, like: addition +, multiplication *, and subtraction -.

In programming, operators perform operations on data values (operands) and produce results.

For example, in  1 + 2:

  • + is the operator
  • 1 is the left operand
  • 2 is the right operand
  • Resulting in 3

JavaScript includes the following categories of operators:

  • Arithmetic Operators: 5 + 3 results in 8.
  • Comparison Operators: 5 > 3 results in true.
  • Logical Operators: true && false results in false.
  • Assignment Operators: let x = 5; x += 3; results in x being 8.
  • Conditional (Ternary) Operator: let result = (5 > 3) ? 'Yes' : 'No'; results in result being 'Yes'.

In the next few lessons, we'll explore these operators in detail.

How did you manage to remove the blur property and reach here?

A

I used sheer determination and problem-solving skills.

B

I inspected the code, found the blur effect, and disabled it.

C

I randomly clicked buttons until something worked.

D

I have no idea, but I made it!

glass-bbok

Test Your Knowledge, Level Up

Upgrading gives you access to quizzes so you can test your knowledge, track progress, and improve your skills.

Upgrade your account

0 Comments

"Please login to view comments"

glass-bbok

Join the Conversation!

Subscribing gives you access to the comments so you can share your ideas, ask questions, and connect with others.

Upgrade your account
tick-guideNext Lesson

Arithmetic Operators