I have the following function in my javascript file
CODE:
[CODE=javascript]function displayFullName (firstName, lastName) {
if(lastName != null) { //@@ Appnds only when last name exists
return (firstName + ' ' + lastName);
} else {
return firstName;
}
}
[/CODE]
Here the inline comment gives me error "Invalid character".
When I remove @@ it works fine for me.
What is the reason behind this ?
CODE:
[CODE=javascript]function displayFullName (firstName, lastName) {
if(lastName != null) { //@@ Appnds only when last name exists
return (firstName + ' ' + lastName);
} else {
return firstName;
}
}
[/CODE]
Here the inline comment gives me error "Invalid character".
When I remove @@ it works fine for me.
What is the reason behind this ?
Comment