
강의를 들으면서 감이잘안와서요 왜이렇게 되는건지 알려주실수있을까요..
function q1() {
let txt = $('#input-q1').val()
if (txt == '') {
alert('빈칸입니다')
} else {
alert(txt)
}
function q2() {
let txt =$('#input-q2').val()
if (txt.includes('@') == true) {
alert(txt.split('@')[1].split('.')[0])
}else{
alert('이메일이 아닙니다')
}
function q3() {
let txt = $('#input-q3').val()
let temp_html = `<li>${txt}</li>`
$('#names-q3').append(temp_html)
}
function q3_remove() {
$('#names-q3').empty()
}
