Mini Lessons
  • WordPress Foundations
  • The highly-paid WordPress Expert
  • WordPress Best Practices
Sign in Subscribe

Expressions

Understanding statements in Javascript

Understanding statements in Javascript

So, what is a statement in Javascript? A JavaScript program is a sequence of statements, and each statement is an instruction that tells the computer what to do. Here are some examples of statements in javascript. Variable assignment statement const pi = 3.14159265359; In the above statement, we are instructing
Naresh Devineni Mar 13, 2023
Expressions can contain other expressions

Expressions can contain other expressions

Expressions can be part of other expressions. For example: (2 + 3) * 5; //Produces a value of 25 But how does the expression (2 + 3) * 5 produces the value of 25? The answer is simple. When Javascript tries to execute the expression (2 + 3) * 5: 1. It will first execute the
Naresh Devineni Mar 12, 2023
The need for expressions in Javascript

The need for expressions in Javascript

So far, we have been coding simple components: 1. Modal 2. Accordion 3. Off-canvas menu While coding each of those components, we followed a simple execution pattern. That is, "if the button is clicked, then do something". For example, for the modal, if the button is clicked, we
Naresh Devineni Mar 12, 2023

Subscribe to Mini Lessons

Don't miss out on the latest news. Sign up now to get access to the library of members-only articles.
  • Sign up
Mini Lessons © 2025. Powered by Ghost