I am mega confused, What do all of these symbols mean?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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.

4th Mar 2022, 2:30 PM
Kyle Mastropolo
Kyle Mastropolo - avatar
4 Answers
+ 1
Read this page you will get your answers https://www.w3schools.com/cs/cs_operators.php hope it helps
4th Mar 2022, 2:35 PM
Ritwik Sharm
+ 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
4th Mar 2022, 2:41 PM
A͢J
A͢J - avatar
+ 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?
5th Mar 2022, 11:10 PM
Kyle Mastropolo
Kyle Mastropolo - avatar
- 3
Contact me on ig- ritwik_454
4th Mar 2022, 2:41 PM
Ritwik Sharm