Part 8- A Smarter Way to Learn JavaScript Flashcards
1
Q
How does a DO WHILE loop process things differently that a WHILE loop?
A
*DO WHILE loop will execute the statement at least once,
*WHILE loop checks the condition first and then executes the statement
2
Q
How do you indicate a comment in javascript?
A
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 start with /* and end with */ (Just like in CSS)