JavaScript console.log() 메서드는 콘솔에 메시지를 작성하는 데 사용됩니다.
다음은 JavaScript console.log() 메서드에 대한 코드입니다. -
예시
<!DOCTYPE html>
<html>
<head>
<style>
body {
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
</style>
</head>
<body>
<h1>console.log() Example</h1>
<button class="Btn">CLICK HERE</button>
<h3>Click the above button to see output in your console</h3>
<script>
let test = {
a:22,
b:'HELLO',
c:44,
}
console.log(test);
console.log('HELLO WORLD');
</script>
</body>
</html> 출력

"여기를 클릭" 버튼을 클릭하면 -
