answersLogoWhite

0

Binary operators are the common ones like +, -, /, *, <, >, !=, etc.. These you use with two objects, like : 1 + 2 Unary are the ones that does not need another object, like : ++, +, --, -, ! Like var a = 5; // Not this. this is a assignment a++; //Increment a in one ++a; //Increment a in one a--; // Decrement a in one --a; // Decrement a in one !a; // Logical opposite of a +a; // Positive value of a -a; // Negative value of a

User Avatar

Wiki User

16y ago

Still curious? Ask our experts.

Chat with our AI personalities

ProfessorProfessor
I will give you the most educated answer.
Chat with Professor
ViviVivi
Your ride-or-die bestie who's seen you through every high and low.
Chat with Vivi
JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan

Add your answer:

Earn +20 pts
Q: What are unary operators in javascript?
Write your answer...
Submit
Still have questions?
magnify glass
imp