Statements in JavaScript –
A computer program is a list of “instructions” to be “executed” by a computer. In a programming language, these programming instructions are called statements. JavaScript program is a list of programming statements.
Most JavaScript programs contain many JavaScript statements. The statements are executed, one by one, in the same order as they are written.
Semicolons (;)
Semicolons separate JavaScript statements. On the web, you might see examples without semicolons.
Ending statements with semicolon is not required, but highly recommended.
JavaScript Comments –
JavaScript comments can be used to explain JavaScript code, and to make it more readable. JavaScript comments can also be used to prevent execution, when testing alternative code.
Single Line Comments (//) –
Single line comments start with //.
Any text between // and the end of the line will be ignored by JavaScript (will not be executed).
Multi-line Comments (/* */) –
Multi-line comments start with /* and end with */.
Any text between /* and */ will be ignored by JavaScript.
For Program code and more resources checkout this article –
Video by – Tanmay Sakpal
Simple Snippets Channel link – https://www.youtube.com/simplesnippets
Original source
43 responses to “#4 JavaScript Tutorials | Statements and comments”
dark theme
Black is fine
good video.simply can understand
Dark theme obviously…
Why the fonts showed are different in size since ther´s no visible definition of that.??
You should have used material theme of vs code
white theme are good compare to other
auto close tag…?
This is better
ALL PART OF EVOLUTION ARE IMPORTANT BUT ALSO TO TAKE 5 MINUTE A DAY FOR COFFE ( OR SOME THING ELSE ) OR NEW YORK PEOPLE 15 MINUTE A DAY FOR FRIEND .
light theme is fine
Dark theme is more approachable n pleasing to the eyes
dark theme
sir i havev doubt ..
no need of writing <!DOCTYPE html>at begin …..
the line starts from <html>
I don't wanna be Racist by choosing which theme is good😂
If you go to view => toggle wrap you can wrap each line of code so you don’t have to keep using the scroll bar! Also, for lazy people like me in html just put the ! And hit enter. This is for VScode
I have a question, where can statements be used. I understood functions well and I experimented it in some features in web design. Does 'statements' have role in web development and where it can be used.
Is this also for Js386 open source programming
White theme is good sir
Use white theme because our browser is also white therefore there is no strain on our eyes
Tks to share!
Black is better
Use dark theme😬
Dark is always the best🥳
dark is good
bro is that es 6 you are teaching
well you might hate me for this but i use theme. lol. (I started this course today lol. Enjoying till now tbh).
Dark themes rule.
How did you put the browser and vs code side by side and both r working?? Pls tell me…….I wanna try this…….!!
Dark Theme is fine
which extensions are you using sir?
what does <!– ………. //–> means
You are teaching web development but still useses WordPress to make your own website
sir , your class is just awesome and great understanding for me.
and dar theme is better according to me.
and i am using sublime text
Dark +(default dark) is better then another theam
Dark theme is nice
Use dark theme alien 👽
white theme
I think WebStorm by JetBrains is best IDE when compared with any other IDE
Dark Theme is always preferable and best and more usable.
Dark theme is looking good
I am out of time to comment it
Nice explanation