javascript
Brief description  about Online courses   join in Online courses
View Santosh  Hegde 's Profile

Explanation of - /n

Dear Sir,
why we using /n in javascript? please explain me actual meaning of it...


With Thanks
Asked by Santosh Hegde | Jan 28, 2011 |  Reply now
Replies (2)
View santosh hegde 's Profile
Hi Sir,
for example in a alert:
alert("Some fields need correction:\n" + reason);
in this example "\n" act as new line?
Feb 1, 2011
View teacher siliconindia 's Profile
Hi Santosh,

May i know, where u found that '/n', may be it is '\n', its a newline character,

just refer the below link. this may solve ur doubt.

http://www.w3schools.com/jsref/jsref_regexp_newline.asp
Jan 31, 2011