Comments in JavaScript - JavaScript Tutorial 03

Publié le: 14 octobre 2016
sur la chaîne: ChidresTechTutorials
7,536
184

Notes for You:: Comments in JavaScript - JavaScript Tutorial 03
Comments are something like notes in the code.
Comments are used to increase the readability and understandability of the source code.
Comments are used to document the source code.
Comments are ignored by the browsers.
Comments are used to explain code logic, so that we can understand the code later as well as other developers can read and understand the code easily.
If we don’t want to execute some part(s) of the code, we can comment them so that they can be ignored by the browsers.

There are 2 types of comments in JavaScript:
1. Single line comment:
anything written after // is treated as a comment
2. Multiline comment:
anything written in between /* and */ is treated as a comment

Example Code:
<script type="text/javascript">

// document is a built in javascript object, which refers to HTML document

/*
document is a built in javascript object, which refers to HTML document
write is a method in document object, which is used to display content
*/

// document.write("Hello World! <br/>");

/*
document.write("Hello World! <br/>");
document.write("Hello World! <br/>");
*/

document.write("Hello World! <br/>");

</script>

Note:
replace < with less-than symbol
replace > with greater-than symbol

=========================================

Follow the link for next video:
JavaScript Tutorial 04 - How to use HTML tags in JavaScript
   • How to use HTML Tags in JavaScript - ...  

Follow the link for previous video:
JavaScript Tutorial 02 - White space & Line break in JavaScript language
   • Print Multiple Spaces & Line break in...  

=========================================

JavaScript Tutorials Playlist:-
   • JavaScript Tutorials  

=========================================
Watch My Other Useful Tutorials:-

jQuery Tutorials Playlist:-
   • jQuery Tutorials  

jQuery UI Tutorials Playlist:-
   • jQuery UI Tutorials  

Bootstrap Tutorials Playlist:-
   • Bootstrap4 Tutorials  

=========================================

HI, I am Manjunath Chidre and I'm an Indian born. I make video tutorials on Computer Science, Information Technology, Animation, VFX, Multimedia, & Gaming courses. Essentially, I set my goal to help students around the world; to learn at free of cost; through my educational YouTube channel Chidre'sTechTutorials.

=========================================

Every video on my channel is made with Love and Hard work, So don't forget to Like, Comment & Share.
Please do Subscribe, Hit the bell icon & Enjoy Learning. It's FREE.

=========================================

Subscribe to our YouTube channel:-
   / chidrestechtutorials  

Join as member of our YouTube channel:-
https://www.youtube.com/chidrestechtu...

Become our Patron:-
  / chidrestechtutorials  

Visit our Website:-
https://www.chidrestechtutorials.com

Download our Notes from Instamojo:-
https://chidrestechtutorials.myinstam...

Buy our Products on Spring:-
https://chidres-tech-tutorials.creato...

=========================================
Follow us:-

Google My Business:-
https://chidrestechtutorials.business...

Google Blog:-
http://manjunathchidre.blogspot.com

LinkedIn:-
  / chidrestechtutorials  

Facebook:-
  / chidrestechtutorials  

Twitter:-
  / manjunathchidre  

Tumblr:-
  / chidrestechtutorials  

Pinterest:-
  / chidrestechtutorials  

=========================================

Despite my inconsistent uploads; Thanks for being amazing learners and still sticking with me on YouTube.

=========================================
Hash Tags:-
#ChidresTechTutorials #JavaScript #JavaScriptTutorial


Sur cette page du site, vous pouvez voir la vidéo en ligne Comments in JavaScript - JavaScript Tutorial 03 durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur ChidresTechTutorials 14 octobre 2016, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 7,536 fois et il a aimé 184 téléspectateurs. Bon visionnage!