3-06.Template Literals
2023. 3. 29. 17:28ㆍJavascript/자바스크립트 제대로 배워볼래?
<!DOCTYPE html>
<html>
<head>
<title>Document</title>
</head>
<body>
<script>
function hello(name) {
console.log("Hello " + name + " Welcome!");
}
hello("Jeremy");
function hello2(name) {
var name2 = "John";
console.log(`Hello ${name2} Welcome! ${name}`);
}
hello2("Jeremy");
</script>
</body>
</html>
'Javascript > 자바스크립트 제대로 배워볼래?' 카테고리의 다른 글
3-08.Spread Operator (0) | 2023.03.30 |
---|---|
3-07.Object Literal Syntax Extension !!! 0_0 (0) | 2023.03.30 |
3-05.Arrow Function (0) | 2023.03.29 |
3-04.Rest Parameter (0) | 2023.03.29 |
3-03.Default Function Parameter (0) | 2023.03.29 |