https://www.virustotal.com/gui/home/upload https://malzero.xyz/
python(input) = (js) prompt, confirm
setTimeout(function( ){ },3500) const v = documnet.querySellector(' ') v.innerHTML = ' 바꾸고 싶은 문구 ' alert ('띄우기')
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>js실습</title>
<script>
const que = confirm('처음이세요?')
if (que) {
alert('처음이시네요')
} else {
document.write('<h1>자바스크립트로 작성중입니다.</h1>')
}
</script>
<!-- <script>의 위치는 <title> 밑, <body> 안 -->
</head>
<body>
<a href="index.html">처음으로</a>
<h1>1.confirm</h1>
<pre><code>
const que = confirm('처음이세요?')
if (que) {
alert('처음이시네요')
} else {
document.write('<h1>자바스크립트로 작성중입니다.</h1>')
}
</code></pre>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>prompt</title>
<script>
const inp = prompt('당신의 이름을 입력하세요')
alert('당신은' + inp + '님 입니다.')
const list = '<p>날씨가 포근합니다</p>'
document.write(list);
</script>
</head>
<body>
<a href="index.html">처음으로</a>
<h1>2.Prompt</h1>
</body></html>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
#idn {
color: blueviolet;
}
</style>
<!--
<script>
const idn = document.querySelector('#idn')
idn.innerHTML = '저는 잘 알아욤'
</script>
-->
</head>
<body>
<h1 id="idn">저는 잘 몰라요</h1>
<script>
// const idn = document.querySelector('#idn')
// idn.innerHTML = '저는 잘 알아욤'
//
// setTimeout(function(){
// const idn= document.querySelector('#idn')
// idn.innerHTML='저는 잘 알아요!!!!!!!'
// },3000)
// ==
// const idn =()=>document.querySelector('#idn').innerHTML='저는 잘 알아요!!!!!!!'
// setTimeout(idn,3000)
//==
setTimeout(()=>document.querySelector('#idn').innerHTML='저는 잘 알아요!!!!!!!',2000)
</script>
<!--<script>가 여기 있으면 '저는 잘 알아욤'이 나오고
<script>가 <head> 안에 있으면 '저는 잘 몰라요'가 나옴
<script>는 <body> 맨 아래쪽에 있는 것이 좋음 -->
</body></html>