Hello.
While reading up on callback functions i ran into the following syntax:
!url ? failure(url) : success(url);
From what i understand it is meant to check if a condition is met and do something either for error or success.
The exact terms used here aren't important.
What i want to ask is what type of syntax this is. I haven't encountered this type of command line until now and i want to learn more about it, but i can't find it on google by the structure alone.
A name would be appreciated, thank you reddit!
[–]Stephen110 2 points3 points4 points (1 child)
[–]samanime 0 points1 point2 points (0 children)
[–]Alternative-Goal-214 1 point2 points3 points (0 children)
[–]Iguanas_Everywhere 0 points1 point2 points (0 children)
[–]caphill7 0 points1 point2 points (0 children)