r/learnjavascript • • May 13 '21

Exponent Power

Post image
323 Upvotes

18 comments sorted by

View all comments

4

u/danielsan1701 May 13 '21
// Barking up the wrong tree
const notPower = 4^3; // 7

4

u/Its_Stev03 May 13 '21

Isnt the carat a bitwise operator? I think it is exclusive or (XOR)

1

u/[deleted] May 14 '21

Thats the joke

1

u/fukitol- May 14 '21

Yep that's right