JavaScript Comments

Comments can be added to explain the JavaScript, or to make the code more readable.

Single line comments start with //.

The following example uses single line comments to explain the code:

Example

 

Mr Wasim Akhtar

< 􀁖 c 􀁕 i p 􀁗 􀁗 􀁜 p e = " 􀁗 e 􀁛 􀁗 / j a 􀁙 a 􀁖 c 􀁕 i p 􀁗 " >

/ / W 􀁕 i 􀁗 e a h e a d i n g

d o c 􀁘 m e n 􀁗 . 􀁚 􀁕 i 􀁗 e ( " < h 1 > T h i 􀁖 i 􀁖 a h e a d i n g < / h 1 > " ) ;

/ / W 􀁕 i 􀁗 e 􀁗 􀁚 o p a 􀁕 a g 􀁕 a p h 􀁖 :

d o c 􀁘 m e n 􀁗 . 􀁚 􀁕 i 􀁗 e ( " < p > T h i 􀁖 i 􀁖 a p a 􀁕 a g 􀁕 a p h . < / p > " ) ;

d o c 􀁘 m e n 􀁗 . 􀁚 􀁕 i 􀁗 e ( " < p > T h i 􀁖 i 􀁖 a n o 􀁗 h e 􀁕 p a 􀁕 a g 􀁕 a p h . < / p > " ) ;

< / 􀁖 c 􀁕 i p 􀁗 >

No comments:

Post a Comment

If you have any question please let me know

Download K-Lite Codec Pack and Media Player Classic (64-bit, 32-bit)

UPDATE: K-Lite Codec Pack 19.5.1, MPC – Home Cinema 2.6.2.1 and MPC – Black Edition 1.8.9 are available for download. Many times we download...