Skip to content

Instantly share code, notes, and snippets.

View chococrunch2021's full-sized avatar
😝

cheese nuget chococrunch2021

😝
  • Seoul
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<h1>오늘의 이야기</h1>
<h3>yes it is</h3>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
//이름 있는 함수를 만드는 방법
function testA(){
console.log("A");
console.log("A");
console.log("A");
}
//선언적 함수
//이름 없는 함수를 만드는 방법
var testB=function (){
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@chococrunch2021
chococrunch2021 / ClassifierAlpha.js
Last active July 3, 2020 05:43
우아한테크캠프 3일차
function ClassifierAlpha(number=0) { //number 초기값은 0
this.number = number;
}
ClassifierAlpha.prototype.isFactor=function(potentialFactor) {
return this.number % potentialFactor === 0; //=== 타입까지 검사 , ==은 값의 비교만 해준다
}