0
I am mega confused, What do all of these symbols mean??
= == % && || ! ? Please explain each as thorough as possible and use each in an example. Thank you.
4 Respostas
+ 1
Read this page you will get your answers
https://www.w3schools.com/cs/cs_operators.php
hope it helps
+ 1
Mega confused 🤔
= to assign a value to a variable
== to compare values, (5 == 5) returns true because both are equal
% modulus operator returns reminder 5 % 4 = 1
&& means and operator (a && b) which returns true if both are true
|| or operator (a || b) returns true if either a true or b true, returns false if both are false
! not operator which is opposite of true or false (!false returns true, !true returns false
+ 1
I cannot do that as I do not use social media for personal reasons, I meant the “?” as another symbol that I do not know what it means. I see it occur in multiple examples and have no clue what for, can either of u tell me what it means?
- 3
Contact me on ig-
ritwik_454