Discussion: The Shape Shifter
Execute the code to understand the output and gain insights into using the < operator in JavaScript.
We'll cover the following...
Verifying the output
Now, it’s time to execute the code and observe the output.
Press + to interact
const a = "f"<{};const b = "F"<{};console.log(a);console.log(b);
Type coercion
In JavaScript, when we use the <
operator to compare values, it performs a process called type coercion to ...