Comments in Hindi

JavaScript Comments in Hindi – Comments In Hindi

JavaScript

Javascript comments in Hindi – comments in Javascript in Hindi – Single & Multi-Line Comments in Hindi – Ham Is Post Mai Learn Karne Wale Hai Ki Js Comments And Types Of JS Comments And What is Js Comment |

Sabse pahle mai aapko bata du. Ki javascript comments in hindi ke baad ham javascript ke program ko samajhna aur banana suru kar dege. Ye javascript comments in hindi Javascript basic ka last article hai.

Javascript Comments in Hindi

JS Comment Ek JS Code Hota Hai Jise Browser Ignore Karta Hai. Or Is Code Ko Webpage Mai Dikhaya Bhi Nhi Jata Hai |

Jo Content Js Comments Tag Ke Under Likha Jata Hai Ise Keval Browsers Or Developers Hi Dekh Sakte Hai Ye Comment End Users Ko Show Nhi Hota Hai |

What Is Comments in Hindi:- Comments Vah Part Hota Hai Jo Program Ke Bich Mai Likha To Jata Hai Par Vah Code Ke Rup Main Execute Nhi Hota Hai Yani Ki Ham Comments Ko Isliye Likhte Hai Taki Ham Bahut Year/Month Ke Bad Bhi Aapne Code Ko Comments Ke Rup Main Understand Kar Sake |

Yadi Aapne  HTML Full Course  And CSS Full Course Nhi Read Kiya Hai To Aap Vah Bhi Read Kar Sakte Hai |

Types Of Comments In Js In Hindi

Js Mai 3 Types Ke Comments Ko Support Karta Hain |

  • Single Line Comment
  • Multiple Line Comment

JS Single Line Comment in Hindi

Agar code me single line me comment create karni hai, To single Line comment ka use kiya jata hai. Single line comment create karne ke liye Two forward Slace (//) ka prayog kiya jata hai. Chaliye ab neeche dekhte hai.

<script>  
// It is single line comment  
document.write("Hello My javascript");  
</script> 

Aap Dekh Sakte Hai ki Hamne 2 Line Mai //Comments Likhi Jo Ki Niche Diye Gaye Output Mai Run Nhi Hogi. Kyoki Ye Single Line Comments Hain |

Also Read – What is Java in Hindi

Output:

Hello My javascript

JS Multi Line Comment in Hindi

Multiple Line Comment Ka Matlab Hain Ki Ham Comment Ko Multiple Line Main Likh Sakte Hai And Multiple Line Comment Ko Start /* And End */ Se Kiya Jata Hain.

Example:

<script>

  document.write("Hello World"); 
/*
This is multiline comment
print Hello World
*/
</script>

Aap Dekh Sakte Hai ki Hamne 4 Line Se Lekar 7 line Tak /* This is multi-line comment*/ Comments Likhi Jo Ki Niche Diye Gaye Output Mai Run Nhi Hogi. Kyoki Ye Multi-Line Comments Hain |

Output:

Hello World

Aapne Kiya Learn Kiya ?

Is Article Mai Aapne Js Comments Ke Bare Mai Learn Kiya Hai Or Abhi Tak Keval Basic Par Focus Kiya Aage Ki Post Mai Ham Java Variable Ke Bare Mai Read Karne Wale Hai |

Yadi Aapne  HTML Full Course  And CSS Full Course And Python Full Course And PHP Full Course Nhi Read Kiya Hai To Aap Vah Bhi Read Kar Sakte Hai |

Leave a Reply

Your email address will not be published. Required fields are marked *