1let string = "1";
2let number = 1;
3if (parseInt(string) === number){
4 // STRING AND NUMBER MATCHES
5}
6if (string == number){
7 // STRING AND NUMBER MATCHES ALSO BECAUSE == instead of ===, means it won't compare datasets, only the content
8}
1function lessThanOrEqualToZero(num) {
2 let lessThanZero;
3 if ( num <= 0) {
4 result = true;
5 } else {
6 result = false;
7 }
8 return result;
9 }