let properCamelCase;
let thisIsNumber;
properCamelCase = "Variable";
thisIsNumber = 2021;
console.log(properCamelCase, thisIsNumber)
function sayHello() {
console.log("안녕하세요! 만나서 반갑습니다")
}
sayHello();
function getStringLength() {
let str = "I LOVE WECODE";
console.log(str.length)
}
getStringLength();
function returnSeven() {
return 7
}
returnSeven()
function getStringLength() {
let strLength = "I LOVE WECODE".length;
return strLength
}
getStringLength()
function returnName() {
let name = "김지현";
return name;
}
returnName()
function getLengthOfName(name) {
return name.length
}
getLengthOfName("김지현")
function sayMyAge(age) {
console.log(age)
}
sayMyAge(29)
function getFullName(lastname, firstname) {
let fullName = lastname + firstname;
return fullName
}
getFullName("kim", "jihyun")
function findRemainder(){
let remainder;
remainder = 3 % 2
return remainder;
}
findRemainder();
function oddOrEven(num) {
if(num % 2 === 0) {
return "Even"
} else {
return "Odd"
}
}
oddOrEven(20);
function isEitherEvenAndLessThan9(num1, num2) {
if ((num1 % 2 === 0 || num2 % 2 === 0) && (num1 < 9 && num2 < 9)) {
return true
} else {
return false
}
}