Hi, your code is
if(n==0) { ans="no one likes likes this"; }
Change it to if(n==0) { ans="no one likes this"; }
The error is because the word 'likes' is getting repeated in your output statement :)
Good Job Commenting the Logic!! Good Practice :)
Loading collection data...
Hi, your code is
if(n==0)
{
ans="no one likes likes this";
}
Change it to
if(n==0)
{
ans="no one likes this";
}
The error is because the word 'likes' is getting repeated in your output statement :)
Good Job Commenting the Logic!! Good Practice :)