A Pen by jiae

Thumbnail
This awesome code was written by 2107, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright 2107 ©
  • HTML
  • JavaScript
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>A Pen by  jiae</title>
  
  
  
  
  
</head>

<body>

  
  
  

    <script  src="js/index.js"></script>




</body>

</html>

/*Downloaded from https://www.codeseek.co/2107/a-pen-by-jiae-NAkoWm */
function sayHello() {
  return ' 안녕?ㅋ';
}

(function(){
  // 문지애
  var a = 'Apple';
  console.log('문지애: ' + a + sayHello());
})();

(function(){
  // 홍길동
  var a = 'ABC';
  console.log('홍길동: ' + a + sayHello());
})();

console.log('밖: ' + sayHello()); // a is not defined

Comments