console.log('Hello World');
function HelloWorld() {
console.log('Hello World');
}
see w3schools JavaScript has 8 Datatypes
- String
- Number
- Bigint
- Boolean
- Undefined
- Null
- Symbol
- Object
The Object Datatype The object data type can contain:
- An object
- An array
- A date
see w3schools
if (time < 10) {
greeting = "Good morning";
} else if (time < 20) {
greeting = "Good day";
} else {
greeting = "Good evening";
}
see w3schools Different types of loops
see nodejs-integration-tests-best-practices for great testing best practices