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

Windows 10 21H2 and 22H2 Known Issues and Workarounds – April 30, 2024

UPDATE: One existing known issue “The January 2024 Windows RE update might fail to install” was resolved and a new issue “VPN connections mi...