I've already solved it, so I'm unable to post my solution, however the only difference between my code and the given solution code was:
After the if statement, the given solution looked like this:
if (condition) {
callback;
}
Whereas mine looked like this:
if (condition)
{
callback;
}
Is there a reason I'm unaware of as of to why this would fail? Thanks in advance anyone who can help!
The location spacing between my brackets was incorrect possibly? I don't understand.
Under discussion
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
PRAVEEN S
16 September 2022, 17:48
Both the codes are correct,there is no problem while compiling.
0
hidden #11095294
13 September 2022, 08:11
That does not make any difference and your code would have been correct. You possibly had some other correction.
0