vs code download(https://code.visualstudio.com/)
Configure Task Runner
Input shortcut (control + command + b )
하기 task runner 용 Json 작성
{
"version": "1.0.0",
"command": "Chrome",
"osx": {
"command": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
},
"args": [
"${file}"
]
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<script>
alert('hello javascript');
let address;
console.log('', address);
address = "선릉";
console.log(address);
</script>
</head>
<body>
Hello World!!
alert("hello");
</body>
</html>