Replace this line with your code.
What specifically don't you understand?
I can't see what you posted. Try re-posting.
.length outputs how long something is.
These can be done with the operators that you should know from a basic math class. +, -, /, and *.
// is used to make a single line comment.
Numbers are quantities, Strings are sequences of characters, and booleans are true or false operators.
console.log() logs something to console.
|| stands for or. In an if statement, if you use || and one of the multiple conditions and true, then it returns true. It all has to be false to be false.
&& stands for and. In an if statement, all of the conditions need to be true for this to be true, all other things lead to false.
% is a modulo, and it returns the remainder of a division problem.
And that's about it for the Getting Started with Programming.
Hope I helped
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.