TIL
2023.02.13
minnjeong
2023. 2. 15. 16:13
오류
alert가 뜨지 않았다.
<script>
function hey(){
alert('안녕하세요')
}
</script>
</head>
<body>
<div class="mytitle">
<h1>내 생애 최고의 영화들 ~ ❤️</h1>
<button onclick="hey">영화 기록하기</button>
시도해본 것들
해결
<button onclick="hey()">영화 기록하기</button>
알게된 점
dictionary는 중괄호 let a = {'name':'영수', 'age':25}
dictionary에서 값을 가져올 때는 a에 꺾쇠