Skip to content

Latest commit

 

History

History

operator-precedence

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Operator Precedence

In JavaScript you will come across long expressions written in one line. This code will become less mysterious when you understand how Operator Precedence works in JS.

This chapter's examples and exercises will help you internalize JS operator precedence. Learning to read a long expression and see it as a series of single steps will change your programming life!

In these exercises you will study strange and meaningless expressions, they will use all the primitive types and do all sorts of ugly coercions. Keep in mind that this is more challenging than code you will normally work with, and none of this is good habits! The goal of these exercises is to practice understanding difficult JavaScript expressions so when you come across them in the wild you know what to do.


Suggested Study