<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>슈거</title>
    <link>https://cokar.tistory.com/</link>
    <description></description>
    <language>ko</language>
    <pubDate>Sun, 16 Aug 2026 18:41:00 +0900</pubDate>
    <generator>TISTORY</generator>
    <ttl>100</ttl>
    <managingEditor>수이르</managingEditor>
    <item>
      <title>[JS] 호이스팅</title>
      <link>https://cokar.tistory.com/27</link>
      <description>&lt;h1&gt;호이스팅&lt;/h1&gt;
&lt;h2&gt;변수의 호이스팅&lt;/h2&gt;
&lt;pre&gt;&lt;code class=&quot;language-js&quot;&gt;function foo() {
    console.log(a);  // undefined
    var a = 100;
    console.log(a);  // 100
}

foo();    &lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;다른 프로그래밍 언어의 경우 위의 코드를 실행하면 a가 선언되지 않았는데 a를 호출했기 때문에 에러가 발생합니다. 하지만 자바스크립트의 경우는 &lt;strong&gt;호이스팅을 통해 a의 선언을 함수 제일 위에서 해주기 때문에&lt;/strong&gt;, 에러 없이 undefined가 출력됩니다. 위 코드는 사실 아래와 같은 코드입니다.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-js&quot;&gt;function foo() {
    var a;
    console.log(a);  // undefined
    var a = 100;
    console.log(a);  // 100
}

foo();&lt;/code&gt;&lt;/pre&gt;
&lt;h2&gt;함수의 호이스팅&lt;/h2&gt;
&lt;pre&gt;&lt;code class=&quot;language-js&quot;&gt;foo();

function foo() {
    console.log(&amp;#39;출력&amp;#39;);
}&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;위와 같은 코드의 경우, 변수 호이스팅과 마찬가지로 함수선언이 위로 끌어올려지기 때문에 제대로 동작합니다. 하지만 아래와 같은 함수 표현식의 경우에는 오류가 발생합니다.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-js&quot;&gt;foo();  // foo is not a function

var foo = function() {
    console.log(&amp;#39;출력&amp;#39;);
};&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;위의 코드는 아래와 같기 때문에 오류가 난다.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-js&quot;&gt;var foo;

foo();  // foo is not a function

foo = function() {
    console.log(&amp;#39;출력&amp;#39;);
};&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;위와 같이 foo 선언을 위로 호이스팅 해버리기 때문에, foo가 실행될 때는 아직 변수로 선언이 된 상태일 뿐인 것입니다. 따라서 foo는 함수가 아니라는 에러 메세지를 보게 됩니다.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;호이스팅 이해가 어렵다면 호출 전에 선언하는 습관을 들이자&lt;/strong&gt;&lt;/p&gt;</description>
      <category>JavaScript</category>
      <author>수이르</author>
      <guid isPermaLink="true">https://cokar.tistory.com/27</guid>
      <comments>https://cokar.tistory.com/27#entry27comment</comments>
      <pubDate>Fri, 2 Aug 2019 14:44:56 +0900</pubDate>
    </item>
    <item>
      <title>[HTML] form 스터디</title>
      <link>https://cokar.tistory.com/26</link>
      <description>&lt;h2 contenteditable=&quot;true&quot;&gt;&lt;span&gt;크로스브라우징 이슈&lt;/span&gt;&lt;/h2&gt;
&lt;hr /&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p contenteditable=&quot;true&quot;&gt;&lt;span&gt;iOS safari&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p contenteditable=&quot;true&quot;&gt;&lt;span&gt;input, textarea 태그에 border-radiuis 기본으로 값이 들어가있음 (별도로 0 지정)&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p contenteditable=&quot;true&quot;&gt;&lt;span&gt;IE9 이하 input placeholder 사용불가&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p contenteditable=&quot;true&quot;&gt;&lt;span&gt;스크립트를 사용하는 &lt;/span&gt;&lt;span&gt;&lt;span&gt;[&lt;/span&gt;&lt;a href=&quot;https://archive.cmsfactory.net/node/10224&quot;&gt;&lt;span&gt;방법&lt;/span&gt;&lt;/a&gt;&lt;span&gt;](&lt;/span&gt;&lt;span&gt;&lt;a href=&quot;https://archive.cmsfactory.net/node/10224&quot;&gt;https://archive.cmsfactory.net/node/10224&lt;/a&gt;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p contenteditable=&quot;true&quot;&gt;&lt;span&gt;require 속성에 따른 브라우저별 툴팁 표시&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p contenteditable=&quot;true&quot;&gt;&lt;span&gt;파이어폭스 : box-shadow 속성 추가&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p contenteditable=&quot;true&quot;&gt;&lt;span&gt;IE : outline 속성 추가&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p contenteditable=&quot;true&quot;&gt;&lt;span&gt;크롬 : 미입력 input에 말풍선 툴팁&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 contenteditable=&quot;true&quot;&gt;&lt;span&gt;커스텀&lt;/span&gt;&lt;/h2&gt;
&lt;hr /&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p contenteditable=&quot;true&quot;&gt;&lt;span&gt;placeholder color&lt;/span&gt;&lt;/p&gt;
input { padding: 0.78571429em 2.1em 0.78571429em 1em; border-radius: 0.28571429rem; &amp;amp;.input_error { background-color: rgba(221, 78, 90, 0.1); } &amp;amp;::placeholder { color: #f5747f; opacity: 1; /* Firefox */ } &amp;amp;:-ms-input-placeholder { color: #f5747f; /* Internet Explorer 10-11 */ } &amp;amp;::-ms-input-placeholder { color: #c6c6c6 !important; /* Microsoft Edge */ } &amp;amp;::-webkit-input-placeholder { color: #f5747f; /* Safari, Chrome */ } }&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p contenteditable=&quot;true&quot;&gt;&lt;span&gt;IE9 이하는 placeholder.js 사용하여 추가되는 클래스로 컬러 변경&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p contenteditable=&quot;true&quot;&gt;&lt;span&gt;select 화살표 지우기&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;.remove_select_arr { -webkit-appearance: none; /* for chrome */ -moz-appearance: none; /*for firefox*/ appearance: none; &amp;amp;::-ms-expand { display: none; } &amp;amp;:focus { outline: none; } }&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p contenteditable=&quot;true&quot;&gt;&lt;span&gt;괜찮은 UI 프레임워크&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p contenteditable=&quot;true&quot;&gt;&lt;span&gt;&lt;span&gt;[&lt;/span&gt;&lt;a href=&quot;https://semantic-ui.com/&quot;&gt;&lt;span&gt;Semantic-UI&lt;/span&gt;&lt;/a&gt;&lt;span&gt;](&lt;/span&gt;&lt;span&gt;&lt;a href=&quot;https://semantic-ui.com/&quot;&gt;https://semantic-ui.com/&lt;/a&gt;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p contenteditable=&quot;true&quot;&gt;&lt;span&gt;&lt;span&gt;[&lt;/span&gt;&lt;a href=&quot;https://materializecss.com/buttons.html&quot;&gt;&lt;span&gt;Materialize&lt;/span&gt;&lt;/a&gt;&lt;span&gt;](&lt;/span&gt;&lt;span&gt;&lt;a href=&quot;https://materializecss.com/buttons.html&quot;&gt;https://materializecss.com/buttons.html&lt;/a&gt;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 contenteditable=&quot;true&quot;&gt;&lt;span&gt;input 키보드 이벤트 발생 순서&lt;/span&gt;&lt;/h2&gt;
&lt;hr /&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p contenteditable=&quot;true&quot;&gt;&lt;span&gt;keydown = keypress(문자가 입력될 때만 발생, 방향키/백스페이스/딜리트 x)&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p contenteditable=&quot;true&quot;&gt;&lt;span&gt;input&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p contenteditable=&quot;true&quot;&gt;&lt;span&gt;change&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p contenteditable=&quot;true&quot;&gt;&lt;span&gt;keyup&lt;/span&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p contenteditable=&quot;true&quot;&gt;&lt;span&gt;&lt;span&gt;[&lt;/span&gt;&lt;a href=&quot;https://dororongju.tistory.com/91&quot;&gt;&lt;span&gt;참고사이트&lt;/span&gt;&lt;/a&gt;&lt;span&gt;](&lt;/span&gt;&lt;span&gt;&lt;a href=&quot;https://dororongju.tistory.com/91&quot;&gt;https://dororongju.tistory.com/91&lt;/a&gt;&lt;/span&gt;&lt;span&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;</description>
      <author>수이르</author>
      <guid isPermaLink="true">https://cokar.tistory.com/26</guid>
      <comments>https://cokar.tistory.com/26#entry26comment</comments>
      <pubDate>Tue, 9 Apr 2019 01:56:14 +0900</pubDate>
    </item>
    <item>
      <title>[HTML] 문서의 기본 구조</title>
      <link>https://cokar.tistory.com/25</link>
      <description>&lt;h2 cid=&quot;n0&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading md-focus&quot; style=&quot;box-sizing: border-box; break-after: avoid-page; break-inside: avoid; font-size: 1.75em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.225; cursor: text; padding-bottom: 0.3em; border-bottom: 1px solid rgb(238, 238, 238); white-space: pre-wrap; width: inherit; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif;&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;HTML 문서 구조&lt;/span&gt;&lt;/h2&gt;&lt;p&gt;&lt;/p&gt;&lt;pre mdtype=&quot;fences&quot; cid=&quot;n2&quot; contenteditable=&quot;false&quot; lang=&quot;html&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; spellcheck=&quot;false&quot; style=&quot;box-sizing: border-box; overflow: visible; font-family: var(--monospace); font-size: 0.9em; break-inside: avoid; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: rgb(248, 248, 248); border: 1px solid rgb(231, 234, 237); border-radius: 3px; padding: 8px 4px 6px; margin-bottom: 15px; margin-top: 15px; width: inherit; color: rgb(51, 51, 51); position: relative !important;&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span class=&quot;cm-meta&quot; style=&quot;box-sizing: border-box; color: rgb(85, 85, 85);&quot;&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;html&lt;/span&gt; &lt;span class=&quot;cm-attribute&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 204);&quot;&gt;lang&lt;/span&gt;=&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;&quot;ko&quot;&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;meta&lt;/span&gt; &lt;span class=&quot;cm-attribute&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 204);&quot;&gt;charset&lt;/span&gt;=&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;&quot;UTF-8&quot;&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;title&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;HTML&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;title&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;head&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;body&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;h1&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;Hello, HTML&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;h1&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;body&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;html&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;h3 cid=&quot;n3&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box; break-after: avoid-page; break-inside: avoid; font-size: 1.5em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.43; cursor: text; white-space: pre-wrap; width: inherit; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt;1. DTD 선언&lt;/span&gt;&lt;/h3&gt;&lt;p cid=&quot;n5&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; width: inherit; position: relative; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt;문서 타입을 정의하는 문구, 선언문에 따라 브라우저 렌더링 모드가 정해진다.&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n9&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; width: inherit; position: relative; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;반드시 문서 최상단에 위치, &lt;/span&gt;&lt;span md-inline=&quot;tag&quot; class=&quot;md-tag md-raw-inline&quot; spellcheck=&quot;false&quot; style=&quot;box-sizing: border-box; font-family: var(--monospace); opacity: 1; color: rgb(167, 167, 167);&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt; 태그보다 위에 선언돼야 한다.&lt;/span&gt;&lt;/p&gt;&lt;h3 cid=&quot;n14&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box; break-after: avoid-page; break-inside: avoid; font-size: 1.5em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.43; cursor: text; white-space: pre-wrap; width: inherit; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif;&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;2. html 태그 lang 속성&lt;/span&gt;&lt;/h3&gt;&lt;p cid=&quot;n18&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; width: inherit; position: relative; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt;검색엔진이나 브라우저가 어떤 언어로 작성되었는지 알 수 있게 나타내는 속성&lt;/span&gt;&lt;/p&gt;&lt;h3 cid=&quot;n17&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box; break-after: avoid-page; break-inside: avoid; font-size: 1.5em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.43; cursor: text; white-space: pre-wrap; width: inherit; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt;3. head 태그&lt;/span&gt;&lt;/h3&gt;&lt;p cid=&quot;n16&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; width: inherit; position: relative; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt;브라우저에 표시되지 않는 문서의 기본정보 설정(meta, title ..)이나 외부 스타일 시트, JS 파일을 연결한다.&lt;/span&gt;&lt;/p&gt;&lt;h3 cid=&quot;n21&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box; break-after: avoid-page; break-inside: avoid; font-size: 1.5em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.43; cursor: text; white-space: pre-wrap; width: inherit; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt;4. body 태그&lt;/span&gt;&lt;/h3&gt;&lt;p cid=&quot;n23&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; width: inherit; position: relative; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt;실제 브라우저에서 나타나는 내용들이 들어가는 태그&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>HTML &amp;amp; CSS</category>
      <author>수이르</author>
      <guid isPermaLink="true">https://cokar.tistory.com/25</guid>
      <comments>https://cokar.tistory.com/25#entry25comment</comments>
      <pubDate>Fri, 15 Mar 2019 14:56:41 +0900</pubDate>
    </item>
    <item>
      <title>[HTML] 웹 표준과 웹 접근성</title>
      <link>https://cokar.tistory.com/24</link>
      <description>&lt;h2 cid=&quot;n0&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box; break-after: avoid-page; break-inside: avoid; font-size: 1.75em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.225; cursor: text; padding-bottom: 0.3em; border-bottom: 1px solid rgb(238, 238, 238); white-space: pre-wrap; width: inherit; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-expand&quot; style=&quot;box-sizing: border-box;&quot;&gt;웹 표준이란&lt;/span&gt;&lt;/h2&gt;&lt;h2 cid=&quot;n0&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box; break-after: avoid-page; break-inside: avoid; font-size: 1.75em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.225; cursor: text; padding-bottom: 0.3em; border-bottom: 1px solid rgb(238, 238, 238); white-space: pre-wrap; width: inherit; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif;&quot;&gt;&lt;p cid=&quot;n117&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin: 0.8em 0px; width: inherit; position: relative; font-size: 16px; font-weight: 400;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt;웹 표준화 단체(W3C)가 권고한 표준안을 뜻한다.&lt;/span&gt;&lt;/p&gt;&lt;blockquote cid=&quot;n159&quot; mdtype=&quot;blockquote&quot; style=&quot;box-sizing: border-box; margin: 0.8em 0px; border-left-width: 4px; border-left-color: rgb(223, 226, 229); padding-top: 0px; padding-bottom: 0px; color: rgb(119, 119, 119); font-size: 16px; font-weight: 400; white-space: normal;&quot;&gt;&lt;p cid=&quot;n143&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin-right: 0px; margin-bottom: 0.8em; margin-left: 0px; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;autolink&quot; class=&quot;md-link&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;a href=&quot;https://www.w3.org/TR/html5-author/&quot; style=&quot;box-sizing: border-box; cursor: pointer; color: rgb(65, 131, 196); -webkit-user-drag: none;&quot;&gt;https://www.w3.org/TR/html5-author/&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;p cid=&quot;n240&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin-top: 0.8em; margin-right: 0px; margin-left: 0px; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;link&quot; class=&quot;md-link&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;a spellcheck=&quot;false&quot; href=&quot;https://www.koreahtml5.kr/front/reference/referenceView.do;jsessionid=809956D6E65AC1410CD4F897E3894B1F.html5?bbsId=BBS_00000000002&quot; style=&quot;box-sizing: border-box; cursor: pointer; color: rgb(65, 131, 196); -webkit-user-drag: none;&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;KISA 번역본&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p cid=&quot;n154&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin: 0.8em 0px; width: inherit; position: relative; font-size: 16px; font-weight: 400;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt;이를 준수하여 웹을 구현한다는 것과 그에 따른 효과&lt;/span&gt;&lt;/p&gt;&lt;ol class=&quot;ol-list&quot; cid=&quot;n166&quot; mdtype=&quot;list&quot; style=&quot;box-sizing: border-box; margin: 0.8em 0px; padding-left: 30px; position: relative; font-size: 16px; font-weight: 400; white-space: normal;&quot;&gt;&lt;li class=&quot;md-list-item&quot; cid=&quot;n347&quot; mdtype=&quot;list_item&quot; style=&quot;box-sizing: border-box; margin: 0px; position: relative;&quot;&gt;&lt;p cid=&quot;n348&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin-right: 0px; margin-bottom: 0.5rem; margin-left: 0px; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;용도에 맞는 태그 사용과 CSS를 분리하여 작업하는것&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li class=&quot;md-list-item&quot; cid=&quot;n351&quot; mdtype=&quot;list_item&quot; style=&quot;box-sizing: border-box; margin: 0px; position: relative;&quot;&gt;&lt;p cid=&quot;n349&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin-right: 0px; margin-bottom: 0.5rem; margin-left: 0px; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;이를 통해 다양한 브라우저들과 기기에서 동일한 화면을 구현&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li class=&quot;md-list-item&quot; cid=&quot;n354&quot; mdtype=&quot;list_item&quot; style=&quot;box-sizing: border-box; margin: 0px; position: relative;&quot;&gt;&lt;p cid=&quot;n352&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin-right: 0px; margin-bottom: 0.5rem; margin-left: 0px; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt;검색엔진 최적화, 웹 페이지의 데이터를 의미론적으로 분석 가능&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p cid=&quot;n184&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block md-focus&quot; style=&quot;box-sizing: border-box; orphans: 4; margin: 0.8em 0px; width: inherit; position: relative; font-size: 16px; font-weight: 400;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-expand&quot; style=&quot;box-sizing: border-box;&quot;&gt;진단방법&lt;/span&gt;&lt;/p&gt;&lt;ol class=&quot;ol-list&quot; cid=&quot;n188&quot; mdtype=&quot;list&quot; style=&quot;box-sizing: border-box; margin: 0.8em 0px; padding-left: 30px; position: relative; font-size: 16px; font-weight: 400; white-space: normal;&quot;&gt;&lt;li class=&quot;md-list-item&quot; cid=&quot;n355&quot; mdtype=&quot;list_item&quot; style=&quot;box-sizing: border-box; margin: 0px; position: relative;&quot;&gt;&lt;p cid=&quot;n356&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin-right: 0px; margin-bottom: 0.5rem; margin-left: 0px; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;link&quot; class=&quot; md-link&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;a spellcheck=&quot;false&quot; href=&quot;https://validator.w3.org/&quot; style=&quot;box-sizing: border-box; cursor: pointer; color: rgb(65, 131, 196); -webkit-user-drag: none;&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;W3 validator - Markup&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li class=&quot;md-list-item&quot; cid=&quot;n360&quot; mdtype=&quot;list_item&quot; style=&quot;box-sizing: border-box; margin: 0px; position: relative;&quot;&gt;&lt;p cid=&quot;n358&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin-right: 0px; margin-bottom: 0.5rem; margin-left: 0px; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span class=&quot; md-link&quot; md-inline=&quot;link&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;a spellcheck=&quot;false&quot; href=&quot;http://jigsaw.w3.org/css-validator/&quot; style=&quot;box-sizing: border-box; cursor: pointer; color: rgb(65, 131, 196); -webkit-user-drag: none;&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;W3 validator - CSS&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li class=&quot;md-list-item&quot; cid=&quot;n365&quot; mdtype=&quot;list_item&quot; style=&quot;box-sizing: border-box; margin: 0px; position: relative;&quot;&gt;&lt;p cid=&quot;n363&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin-right: 0px; margin-bottom: 0.5rem; margin-left: 0px; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;link&quot; class=&quot;md-link&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;a spellcheck=&quot;false&quot; href=&quot;https://www.koreahtml5.kr/front/diagnosis/diagnosticUrl.do&quot; style=&quot;box-sizing: border-box; cursor: pointer; color: rgb(65, 131, 196); -webkit-user-drag: none;&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;한국인터넷진흥원 - 기술지원센터&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p cid=&quot;n202&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin: 0.8em 0px; width: inherit; position: relative; font-size: 16px; font-weight: 400;&quot;&gt;&lt;/p&gt;&lt;/h2&gt;&lt;h2 cid=&quot;n215&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box; break-after: avoid-page; break-inside: avoid; font-size: 1.75em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.225; cursor: text; padding-bottom: 0.3em; border-bottom: 1px solid rgb(238, 238, 238); white-space: pre-wrap; width: inherit; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt;웹 접근성이란&lt;/span&gt;&lt;/h2&gt;&lt;h2 cid=&quot;n0&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box; break-after: avoid-page; break-inside: avoid; font-size: 1.75em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.225; cursor: text; padding-bottom: 0.3em; border-bottom: 1px solid rgb(238, 238, 238); white-space: pre-wrap; width: inherit; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif;&quot;&gt;&lt;p cid=&quot;n217&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin: 0.8em 0px; width: inherit; position: relative; font-size: 16px; font-weight: 400;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt;장애 여부와 상관없이 모든 환경에서 웹 콘텐츠를 이용할 수 있어야 하는 것&lt;/span&gt;&lt;/p&gt;&lt;ol class=&quot;ol-list&quot; cid=&quot;n221&quot; mdtype=&quot;list&quot; style=&quot;box-sizing: border-box; margin: 0.8em 0px; padding-left: 30px; position: relative; font-size: 16px; font-weight: 400; white-space: normal;&quot;&gt;&lt;li class=&quot;md-list-item&quot; cid=&quot;n368&quot; mdtype=&quot;list_item&quot; style=&quot;box-sizing: border-box; margin: 0px; position: relative;&quot;&gt;&lt;p cid=&quot;n369&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin-right: 0px; margin-bottom: 0.5rem; margin-left: 0px; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;스크린리더를 통해 음성으로 웹 페이지 내용을 들을 수 있어야한다&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li class=&quot;md-list-item&quot; cid=&quot;n372&quot; mdtype=&quot;list_item&quot; style=&quot;box-sizing: border-box; margin: 0px; position: relative;&quot;&gt;&lt;p cid=&quot;n370&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin-right: 0px; margin-bottom: 0.5rem; margin-left: 0px; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;모든 기능은 키보드만으로 사용할 수 있어야 한다.&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li class=&quot;md-list-item&quot; cid=&quot;n375&quot; mdtype=&quot;list_item&quot; style=&quot;box-sizing: border-box; margin: 0px; position: relative;&quot;&gt;&lt;p cid=&quot;n373&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin-right: 0px; margin-bottom: 0.5rem; margin-left: 0px; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt;명료성, 가독성, 콘텐츠의 논리성, 멀티미디어 대체 수단을 고려해야한다&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;p cid=&quot;n247&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin: 0.8em 0px; width: inherit; position: relative; font-size: 16px; font-weight: 400;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt;진단방법&lt;/span&gt;&lt;/p&gt;&lt;ol class=&quot;ol-list&quot; cid=&quot;n258&quot; mdtype=&quot;list&quot; style=&quot;box-sizing: border-box; margin: 0.8em 0px; padding-left: 30px; position: relative; font-size: 16px; font-weight: 400; white-space: normal;&quot;&gt;&lt;li class=&quot;md-list-item&quot; cid=&quot;n376&quot; mdtype=&quot;list_item&quot; style=&quot;box-sizing: border-box; margin: 0px; position: relative;&quot;&gt;&lt;p cid=&quot;n377&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin-right: 0px; margin-bottom: 0.5rem; margin-left: 0px; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;link&quot; class=&quot; md-link&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;a spellcheck=&quot;false&quot; href=&quot;http://www.kwacc.or.kr/WACertificate/Standard&quot; style=&quot;box-sizing: border-box; cursor: pointer; color: rgb(65, 131, 196); -webkit-user-drag: none;&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;한국웹접근성평가센터 - 체크리스트&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li class=&quot;md-list-item&quot; cid=&quot;n381&quot; mdtype=&quot;list_item&quot; style=&quot;box-sizing: border-box; margin: 0px; position: relative;&quot;&gt;&lt;p cid=&quot;n379&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin-right: 0px; margin-bottom: 0.5rem; margin-left: 0px; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span class=&quot; md-link&quot; md-inline=&quot;link&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;a spellcheck=&quot;false&quot; href=&quot;https://nuli.navercorp.com/sharing/fe/nwax&quot; style=&quot;box-sizing: border-box; cursor: pointer; color: rgb(65, 131, 196); -webkit-user-drag: none;&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;NHN Web Accessibility eXtension&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li class=&quot;md-list-item&quot; cid=&quot;n386&quot; mdtype=&quot;list_item&quot; style=&quot;box-sizing: border-box; margin: 0px; position: relative;&quot;&gt;&lt;p cid=&quot;n384&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin-right: 0px; margin-bottom: 0.5rem; margin-left: 0px; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;link&quot; class=&quot;md-link&quot; style=&quot;box-sizing: border-box;&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box; cursor: pointer; color: rgb(65, 131, 196); -webkit-user-drag: none;&quot;&gt;&lt;a spellcheck=&quot;false&quot; href=&quot;https://www.wah.or.kr:444/Participation/online-wah.asp&quot; style=&quot;box-sizing: border-box; cursor: pointer; color: rgb(65, 131, 196); -webkit-user-drag: none;&quot;&gt;웹 접근성 연구소&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;/h2&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <author>수이르</author>
      <guid isPermaLink="true">https://cokar.tistory.com/24</guid>
      <comments>https://cokar.tistory.com/24#entry24comment</comments>
      <pubDate>Fri, 1 Mar 2019 22:34:55 +0900</pubDate>
    </item>
    <item>
      <title>[JS] input 입력값 byte 체크 (키보드이벤트)</title>
      <link>https://cokar.tistory.com/18</link>
      <description>&lt;h2 class=&quot;md-end-block md-heading md-focus&quot; mdtype=&quot;heading&quot; cid=&quot;n21&quot; style=&quot;box-sizing: border-box; break-after: avoid-page; break-inside: avoid; font-size: 1.75em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.225; cursor: text; padding-bottom: 0.3em; border-bottom: 1px solid rgb(238, 238, 238); white-space: pre-wrap; width: inherit; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-expand&quot; style=&quot;box-sizing: border-box;&quot;&gt;input 입력값 byte 체크 (키보드이벤트)&lt;/span&gt;&lt;/h2&gt;&lt;pre mdtype=&quot;fences&quot; cid=&quot;n23&quot; lang=&quot;html&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; spellcheck=&quot;false&quot; style=&quot;box-sizing: border-box; overflow: visible; font-family: var(--monospace); font-size: 0.9em; break-inside: avoid; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: rgb(248, 248, 248); border: 1px solid rgb(231, 234, 237); border-radius: 3px; padding: 8px 4px 6px; margin-bottom: 15px; margin-top: 15px; width: inherit; color: rgb(51, 51, 51); position: relative !important;&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;div&lt;/span&gt; &lt;span class=&quot;cm-attribute&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 204);&quot;&gt;class&lt;/span&gt;=&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;&quot;ui input square&quot;&lt;/span&gt; &lt;span class=&quot;cm-attribute&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 204);&quot;&gt;style&lt;/span&gt;=&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;&quot;width: calc(100% - 400px); margin-right: 10px;&quot;&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;input&lt;/span&gt; &lt;span class=&quot;cm-attribute&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 204);&quot;&gt;class&lt;/span&gt;=&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;&quot;text&quot;&lt;/span&gt; &lt;span class=&quot;cm-attribute&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 204);&quot;&gt;type&lt;/span&gt;=&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;&quot;text&quot;&lt;/span&gt; &lt;span class=&quot;cm-attribute&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 204);&quot;&gt;placeholder&lt;/span&gt;=&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;&quot;검색어를 입력하세요.&quot;&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;span&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;(&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;span&lt;/span&gt; &lt;span class=&quot;cm-attribute&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 204);&quot;&gt;class&lt;/span&gt;=&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;&quot;bytes&quot;&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;0&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;span&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;/38 Byte)&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;span&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;div&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre mdtype=&quot;fences&quot; cid=&quot;n27&quot; lang=&quot;javascript&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; spellcheck=&quot;false&quot; style=&quot;box-sizing: border-box; overflow: visible; font-family: var(--monospace); font-size: 0.9em; break-inside: avoid; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: rgb(248, 248, 248); border: 1px solid rgb(231, 234, 237); border-radius: 3px; padding: 8px 4px 6px; margin-bottom: 15px; margin-top: 15px; width: inherit; color: rgb(51, 51, 51); position: relative !important;&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;script&lt;/span&gt; &lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;//byte 체크&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;$&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'.text'&lt;/span&gt;).&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;keyup&lt;/span&gt;(&lt;span class=&quot;cm-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(119, 0, 136);&quot;&gt;function&lt;/span&gt;(){&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;bytesHandler&lt;/span&gt;(&lt;span class=&quot;cm-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(119, 0, 136);&quot;&gt;this&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;  });&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;cm-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(119, 0, 136);&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;cm-def&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 255);&quot;&gt;getTextLength&lt;/span&gt;(&lt;span class=&quot;cm-def&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 255);&quot;&gt;str&lt;/span&gt;) {&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;cm-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(119, 0, 136);&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;cm-def&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 255);&quot;&gt;len&lt;/span&gt; &lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;0&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;cm-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(119, 0, 136);&quot;&gt;for&lt;/span&gt; (&lt;span class=&quot;cm-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(119, 0, 136);&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;cm-def&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 255);&quot;&gt;i&lt;/span&gt; &lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;0&lt;/span&gt;; &lt;span class=&quot;cm-variable-2&quot; style=&quot;box-sizing: border-box; color: rgb(0, 85, 170);&quot;&gt;i&lt;/span&gt; &lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;cm-variable-2&quot; style=&quot;box-sizing: border-box; color: rgb(0, 85, 170);&quot;&gt;str&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;length&lt;/span&gt;; &lt;span class=&quot;cm-variable-2&quot; style=&quot;box-sizing: border-box; color: rgb(0, 85, 170);&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;++&lt;/span&gt;) {&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;cm-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(119, 0, 136);&quot;&gt;if&lt;/span&gt; (&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;escape&lt;/span&gt;(&lt;span class=&quot;cm-variable-2&quot; style=&quot;box-sizing: border-box; color: rgb(0, 85, 170);&quot;&gt;str&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;charAt&lt;/span&gt;(&lt;span class=&quot;cm-variable-2&quot; style=&quot;box-sizing: border-box; color: rgb(0, 85, 170);&quot;&gt;i&lt;/span&gt;)).&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;length&lt;/span&gt; &lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;6&lt;/span&gt;) {&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;cm-variable-2&quot; style=&quot;box-sizing: border-box; color: rgb(0, 85, 170);&quot;&gt;len&lt;/span&gt;&lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;++&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;  }&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;cm-variable-2&quot; style=&quot;box-sizing: border-box; color: rgb(0, 85, 170);&quot;&gt;len&lt;/span&gt;&lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;++&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;  }&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;cm-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(119, 0, 136);&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;cm-variable-2&quot; style=&quot;box-sizing: border-box; color: rgb(0, 85, 170);&quot;&gt;len&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;  }&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;cm-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(119, 0, 136);&quot;&gt;function&lt;/span&gt; &lt;span class=&quot;cm-def&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 255);&quot;&gt;bytesHandler&lt;/span&gt;(&lt;span class=&quot;cm-def&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 255);&quot;&gt;obj&lt;/span&gt;){&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;cm-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(119, 0, 136);&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;cm-def&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 255);&quot;&gt;text&lt;/span&gt; &lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;$&lt;/span&gt;(&lt;span class=&quot;cm-variable-2&quot; style=&quot;box-sizing: border-box; color: rgb(0, 85, 170);&quot;&gt;obj&lt;/span&gt;).&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;val&lt;/span&gt;();&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;$&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'span.bytes'&lt;/span&gt;).&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;text&lt;/span&gt;(&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;getTextLength&lt;/span&gt;(&lt;span class=&quot;cm-variable-2&quot; style=&quot;box-sizing: border-box; color: rgb(0, 85, 170);&quot;&gt;text&lt;/span&gt;));&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;  }&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;cm-string-2&quot; style=&quot;box-sizing: border-box; color: rgb(255, 85, 0);&quot;&gt;/script&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;p cid=&quot;n29&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin: 0.8em 0px; white-space: pre-wrap; width: inherit; position: relative; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;&lt;/p&gt;&lt;h2 cid=&quot;n78&quot; mdtype=&quot;heading&quot; class=&quot;md-end-block md-heading&quot; style=&quot;box-sizing: border-box; break-after: avoid-page; break-inside: avoid; font-size: 1.75em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.225; cursor: text; padding-bottom: 0.3em; border-bottom: 1px solid rgb(238, 238, 238); white-space: pre-wrap; width: inherit; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt;키보드 이벤트 발생 순서&lt;/span&gt;&lt;/h2&gt;&lt;ol class=&quot;ol-list&quot; cid=&quot;n79&quot; mdtype=&quot;list&quot; style=&quot;box-sizing: border-box; margin: 0.8em 0px; padding-left: 30px; position: relative; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;&lt;li class=&quot;md-list-item&quot; cid=&quot;n80&quot; mdtype=&quot;list_item&quot; style=&quot;box-sizing: border-box; margin: 0px; position: relative;&quot;&gt;&lt;p cid=&quot;n81&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin-right: 0px; margin-bottom: 0.5rem; margin-left: 0px; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;keydown = keypress(문자가 입력될 때만 발생, 방향키/백스페이스/딜리트 x)&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li class=&quot;md-list-item&quot; cid=&quot;n82&quot; mdtype=&quot;list_item&quot; style=&quot;box-sizing: border-box; margin: 0px; position: relative;&quot;&gt;&lt;p cid=&quot;n83&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin-right: 0px; margin-bottom: 0.5rem; margin-left: 0px; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt;input&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li class=&quot;md-list-item&quot; cid=&quot;n84&quot; mdtype=&quot;list_item&quot; style=&quot;box-sizing: border-box; margin: 0px; position: relative;&quot;&gt;&lt;p cid=&quot;n85&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin-right: 0px; margin-bottom: 0.5rem; margin-left: 0px; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;change&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li class=&quot;md-list-item&quot; cid=&quot;n86&quot; mdtype=&quot;list_item&quot; style=&quot;box-sizing: border-box; margin: 0px; position: relative;&quot;&gt;&lt;p cid=&quot;n87&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin-right: 0px; margin-bottom: 0.5rem; margin-left: 0px; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt;keyup&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;&lt;blockquote cid=&quot;n90&quot; mdtype=&quot;blockquote&quot; style=&quot;box-sizing: border-box; margin: 0.8em 0px; border-left-width: 4px; border-left-color: rgb(223, 226, 229); padding-top: 0px; padding-bottom: 0px; color: rgb(119, 119, 119); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;&lt;p cid=&quot;n89&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin-right: 0px; margin-left: 0px; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;url&quot; class=&quot;md-link&quot; spellcheck=&quot;false&quot; style=&quot;box-sizing: border-box; word-break: break-all;&quot;&gt;&lt;a href=&quot;https://dororongju.tistory.com/91&quot; style=&quot;box-sizing: border-box; cursor: pointer; color: rgb(65, 131, 196); -webkit-user-drag: none;&quot;&gt;https://dororongju.tistory.com/91&lt;/a&gt;&lt;/span&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-expand&quot; style=&quot;box-sizing: border-box;&quot;&gt; 참고 사이트&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>JavaScript</category>
      <author>수이르</author>
      <guid isPermaLink="true">https://cokar.tistory.com/18</guid>
      <comments>https://cokar.tistory.com/18#entry18comment</comments>
      <pubDate>Wed, 19 Dec 2018 14:14:35 +0900</pubDate>
    </item>
    <item>
      <title>[CSS] font-face 설정 (브라우저 호환성 고려)</title>
      <link>https://cokar.tistory.com/17</link>
      <description>&lt;ul class=&quot;ul-list&quot; cid=&quot;n89&quot; mdtype=&quot;list&quot; data-mark=&quot;-&quot; style=&quot;box-sizing: border-box; margin: 30px 0px 0.8em; padding-left: 30px; position: relative; color: rgb(51, 51, 51); font-family: &amp;quot;Open Sans&amp;quot;, &amp;quot;Clear Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif; font-size: 16px;&quot;&gt;&lt;li class=&quot;md-list-item&quot; cid=&quot;n108&quot; mdtype=&quot;list_item&quot; style=&quot;box-sizing: border-box; margin: 0px; position: relative;&quot;&gt;&lt;p cid=&quot;n110&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin-right: 0px; margin-bottom: 0.5rem; margin-left: 0px; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; class=&quot;md-expand&quot; style=&quot;box-sizing: border-box;&quot;&gt;EOT(Embedded Open Type) : IE8 이하 버전은 .eot 파일만 인식&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li class=&quot;md-list-item&quot; cid=&quot;n123&quot; mdtype=&quot;list_item&quot; style=&quot;box-sizing: border-box; margin: 0px; position: relative;&quot;&gt;&lt;p cid=&quot;n121&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin-right: 0px; margin-bottom: 0.5rem; margin-left: 0px; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;oft(OpenType)/ttf(TrueType) : 웹과 문서 파일에서도 사용 가능. 대부분 브라우저에서 사용 가능 (Chrome 4+, Firefox 3.5, Opera 10+, Safari 3-5, Android, iOS 에서 지원)&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li class=&quot;md-list-item&quot; cid=&quot;n126&quot; mdtype=&quot;list_item&quot; style=&quot;box-sizing: border-box; margin: 0px; position: relative;&quot;&gt;&lt;p cid=&quot;n124&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin-right: 0px; margin-bottom: 0.5rem; margin-left: 0px; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;WOFF(Web Open Font Format) : TrueType이나 OpenType 서체를 압축한 것 (Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+, FF Mobile(Gecko) 5, Opera Mobile11 에서 지원)&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li class=&quot;md-list-item&quot; cid=&quot;n129&quot; mdtype=&quot;list_item&quot; style=&quot;box-sizing: border-box; margin: 0px; position: relative;&quot;&gt;&lt;p cid=&quot;n127&quot; mdtype=&quot;paragraph&quot; class=&quot;md-end-block&quot; style=&quot;box-sizing: border-box; orphans: 4; margin-right: 0px; margin-bottom: 0.5rem; margin-left: 0px; white-space: pre-wrap; position: relative;&quot;&gt;&lt;span md-inline=&quot;plain&quot; style=&quot;box-sizing: border-box;&quot;&gt;SVG(Scalable Vector Graphic) : (Chrome, Opera, Safari, Opera Mobile 10.0, Safari Mobile에서 지원)&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;pre mdtype=&quot;fences&quot; cid=&quot;n132&quot; lang=&quot;css&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; spellcheck=&quot;false&quot; style=&quot;box-sizing: border-box; overflow: visible; font-family: var(--monospace); font-size: 0.9em; break-inside: avoid; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: rgb(248, 248, 248); border: 1px solid rgb(231, 234, 237); border-radius: 3px; padding: 8px 4px 6px; margin-bottom: 15px; margin-top: 15px; width: inherit; color: rgb(51, 51, 51); position: relative !important;&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;//한 줄씩 설명&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span class=&quot;cm-def&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 255);&quot;&gt;@font-face&lt;/span&gt; {&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;font-family&lt;/span&gt;: &lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'Noto Sans CJK'&lt;/span&gt;; // 폰트 이름 원하는데로 설정 가능&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;font-weight&lt;/span&gt;: &lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;400&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;src&lt;/span&gt;: &lt;span class=&quot;cm-atom&quot; style=&quot;box-sizing: border-box; color: rgb(34, 17, 153);&quot;&gt;url&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'./assets/fonts/NotoSansCJKkr-Regular.eot'&lt;/span&gt;);// &amp;nbsp;&lt;span class=&quot;cm-error&quot; style=&quot;box-sizing: border-box; color: red;&quot;&gt;IE&lt;/span&gt; 호환성 모드&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;src&lt;/span&gt;: &lt;span class=&quot;cm-atom&quot; style=&quot;box-sizing: border-box; color: rgb(34, 17, 153);&quot;&gt;url&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'./assets/fonts/NotoSansCJKkr-Regular.eot?#iefix'&lt;/span&gt;) &lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;format&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'embedded-opentype'&lt;/span&gt;),&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;  // &lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;format&lt;/span&gt;() 작성 시 지원하는 브라우저만 자운&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-atom&quot; style=&quot;box-sizing: border-box; color: rgb(34, 17, 153);&quot;&gt;url&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'./assets/fonts/NotoSansCJKkr-Regular.woff'&lt;/span&gt;) &lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;format&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'woff'&lt;/span&gt;),&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-atom&quot; style=&quot;box-sizing: border-box; color: rgb(34, 17, 153);&quot;&gt;url&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'./assets/fonts/NotoSansCJKkr-Regular.otf'&lt;/span&gt;) &lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;format&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'opentype'&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;  // &lt;span class=&quot;cm-error&quot; style=&quot;box-sizing: border-box; color: red;&quot;&gt;IE8&lt;/span&gt; 이하는 &lt;span class=&quot;cm-error&quot; style=&quot;box-sizing: border-box; color: red;&quot;&gt;format&lt;/span&gt;() 구문 인식을 못 해 다른 &lt;span class=&quot;cm-error&quot; style=&quot;box-sizing: border-box; color: red;&quot;&gt;url&lt;/span&gt;()을 다운받는다&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;  // 그래서 &lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'#iefix'&lt;/span&gt;를 삽입하여 뒤로는 인식 못 하게 하여 &lt;span class=&quot;cm-qualifier&quot; style=&quot;box-sizing: border-box; color: rgb(85, 85, 85);&quot;&gt;.eot&lt;/span&gt; 파일만 받게 함 (&lt;span class=&quot;cm-error&quot; style=&quot;box-sizing: border-box; color: red;&quot;&gt;IE&lt;/span&gt; 특성 이용)&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;  // 이후 타 브라우저들은 해당 포맷만 다운로드&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;src&lt;/span&gt;: &lt;span class=&quot;cm-atom&quot; style=&quot;box-sizing: border-box; color: rgb(34, 17, 153);&quot;&gt;local&lt;/span&gt;(※), &lt;span class=&quot;cm-atom&quot; style=&quot;box-sizing: border-box; color: rgb(34, 17, 153);&quot;&gt;url&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'./assets/fonts/NotoSansCJKkr-Regular.woff'&lt;/span&gt;) &lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;format&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'woff'&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;  // &lt;span class=&quot;cm-error&quot; style=&quot;box-sizing: border-box; color: red;&quot;&gt;local&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'폰트이름'&lt;/span&gt;) -&amp;gt; 외부 자원을 참조하기 이전에 시스템에 설치된 글꼴을 우선 참조&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;  // 없을 경우 &lt;span class=&quot;cm-error&quot; style=&quot;box-sizing: border-box; color: red;&quot;&gt;url&lt;/span&gt;() 주소로 연결 (&lt;span class=&quot;cm-error&quot; style=&quot;box-sizing: border-box; color: red;&quot;&gt;IE&lt;/span&gt;는 &lt;span class=&quot;cm-error&quot; style=&quot;box-sizing: border-box; color: red;&quot;&gt;local&lt;/span&gt;() 속성을 인식 못 함-&amp;gt;건너뜀)&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;//적용되는 순서 설명&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span class=&quot;cm-def&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 255);&quot;&gt;@font-face&lt;/span&gt; {&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;font-family&lt;/span&gt;: &lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'Noto Sans CJK'&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;font-weight&lt;/span&gt;: &lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;500&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;src&lt;/span&gt;: &lt;span class=&quot;cm-atom&quot; style=&quot;box-sizing: border-box; color: rgb(34, 17, 153);&quot;&gt;url&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'./assets/fonts/NotoSansCJKkr-Medium.eot'&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;src&lt;/span&gt;: &lt;span class=&quot;cm-atom&quot; style=&quot;box-sizing: border-box; color: rgb(34, 17, 153);&quot;&gt;local&lt;/span&gt;(※),&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-atom&quot; style=&quot;box-sizing: border-box; color: rgb(34, 17, 153);&quot;&gt;url&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'./assets/fonts/NotoSansCJKkr-Medium.woff'&lt;/span&gt;) &lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;format&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'woff'&lt;/span&gt;),&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-atom&quot; style=&quot;box-sizing: border-box; color: rgb(34, 17, 153);&quot;&gt;url&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'./assets/fonts/NotoSansCJKkr-Medium.woff'&lt;/span&gt;) &lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;format&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'opentype'&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;  // &amp;nbsp;&lt;span class=&quot;cm-error&quot; style=&quot;box-sizing: border-box; color: red;&quot;&gt;IE&lt;/span&gt; &lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;6&lt;/span&gt;~&lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;8&lt;/span&gt; 로 접속 - 첫 &lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;src&lt;/span&gt; : &lt;span class=&quot;cm-atom&quot; style=&quot;box-sizing: border-box; color: rgb(34, 17, 153);&quot;&gt;local&lt;/span&gt;() 속성 인식 못하여 다음 &lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;src&lt;/span&gt; 에서 &lt;span class=&quot;cm-qualifier&quot; style=&quot;box-sizing: border-box; color: rgb(85, 85, 85);&quot;&gt;.eot&lt;/span&gt; 다운&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;  // &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;IE&lt;/span&gt; 호환성 보기로 접속 - 첫 &lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;src&lt;/span&gt; : &lt;span class=&quot;cm-atom&quot; style=&quot;box-sizing: border-box; color: rgb(34, 17, 153);&quot;&gt;local&lt;/span&gt;() 속성 인식 못하여 다음 &lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;src&lt;/span&gt; 에서 &lt;span class=&quot;cm-qualifier&quot; style=&quot;box-sizing: border-box; color: rgb(85, 85, 85);&quot;&gt;.eot&lt;/span&gt; 다운&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;  // &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;IE&lt;/span&gt; &lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;9&lt;/span&gt; 이상으로 접속 - &lt;span class=&quot;cm-qualifier&quot; style=&quot;box-sizing: border-box; color: rgb(85, 85, 85);&quot;&gt;.woff&lt;/span&gt; 다운&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;  //  크롬, &lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;firefox&lt;/span&gt;, &lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;opera&lt;/span&gt;, &lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;safari&lt;/span&gt; 접속 - &lt;span class=&quot;cm-qualifier&quot; style=&quot;box-sizing: border-box; color: rgb(85, 85, 85);&quot;&gt;.woff&lt;/span&gt; 또는 &lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;opentype&lt;/span&gt; 다운&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;div&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>HTML &amp;amp; CSS</category>
      <author>수이르</author>
      <guid isPermaLink="true">https://cokar.tistory.com/17</guid>
      <comments>https://cokar.tistory.com/17#entry17comment</comments>
      <pubDate>Wed, 12 Dec 2018 17:21:33 +0900</pubDate>
    </item>
    <item>
      <title>[JS] jQuery .on() 이벤트</title>
      <link>https://cokar.tistory.com/16</link>
      <description>&lt;pre mdtype=&quot;fences&quot; cid=&quot;n110&quot; lang=&quot;javascript&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; spellcheck=&quot;false&quot; style=&quot;box-sizing: border-box; overflow: visible; font-family: var(--monospace); font-size: 0.9em; break-inside: avoid; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: rgb(248, 248, 248); border: 1px solid rgb(231, 234, 237); border-radius: 3px; padding: 8px 4px 6px; margin-bottom: 15px; margin-top: 15px; width: inherit; color: rgb(51, 51, 51); position: relative !important;&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;//이벤트 하나&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;$&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'.main-nav ul &amp;gt; li'&lt;/span&gt;).&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;on&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'click'&lt;/span&gt;, &lt;span class=&quot;cm-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(119, 0, 136);&quot;&gt;function&lt;/span&gt;(){&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span cm-text=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt;​&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;});&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;//이벤트 둘&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;$&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'.main-nav ul &amp;gt; li'&lt;/span&gt;).&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;on&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'click mouseover'&lt;/span&gt;, &lt;span class=&quot;cm-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(119, 0, 136);&quot;&gt;function&lt;/span&gt;(){&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span cm-text=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt;​&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;});&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;//이벤트 넷&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;$&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'.main-nav ul &amp;gt; li'&lt;/span&gt;).&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;on&lt;/span&gt;({&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;cm-string cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;'focusin mouseover'&lt;/span&gt;: &lt;span class=&quot;cm-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(119, 0, 136);&quot;&gt;function&lt;/span&gt; () {},&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;cm-string cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;'focusout mouseleave'&lt;/span&gt;: &lt;span class=&quot;cm-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(119, 0, 136);&quot;&gt;function&lt;/span&gt; () {}&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;});&lt;/span&gt;&lt;/pre&gt;&lt;div&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>JavaScript</category>
      <author>수이르</author>
      <guid isPermaLink="true">https://cokar.tistory.com/16</guid>
      <comments>https://cokar.tistory.com/16#entry16comment</comments>
      <pubDate>Tue, 11 Dec 2018 14:37:54 +0900</pubDate>
    </item>
    <item>
      <title>[JS] jQuery .trigger() 함수 (이벤트/이벤트핸들러/함수 비교)</title>
      <link>https://cokar.tistory.com/15</link>
      <description>&lt;h4 class=&quot;md-end-block md-heading md-focus&quot; style=&quot;box-sizing: border-box; break-after: avoid-page; break-inside: avoid; font-size: 1.25em; margin-top: 1rem; margin-bottom: 1rem; position: relative; line-height: 1.4; cursor: text; white-space: pre-wrap; width: inherit; color: #333333; font-family: 'Open Sans', 'Clear Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;box-sizing: border-box;&quot; class=&quot;md-expand&quot;&gt;trigger() 메서드는 요소에 등록된 이벤트 핸들러만 실행시킨다.&lt;/span&gt;&lt;/h4&gt;
&lt;div&gt;
&lt;pre id=&quot;code_1616562380957&quot; class=&quot;javascript&quot; data-ke-language=&quot;javascript&quot; data-ke-type=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;lt;script&amp;gt;
 &amp;nbsp; &amp;nbsp;//이벤트 이벤트핸들러(이벤트 발생했을 때 실행되는 함수)
 &amp;nbsp; &amp;nbsp;$('#foo').on('custom', function (event, param1, param2) {
 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 이벤트 핸들러의 첫번째 매개변수는 이벤트 객체를 전달받는다.
 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;alert(param1 + &quot;\n&quot; + param2);
 &amp;nbsp;  });
 &amp;nbsp; &amp;nbsp;$('#bar').on('click', function () {
 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;$('#foo').trigger('custom', ['Custom','Event']);
 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// #foo 요소에 등록된 이벤트 핸들러만 실행
 &amp;nbsp;  });
​
 &amp;nbsp; &amp;nbsp;//함수의 매개변수는 값 그대로 반환 (함수 그 자체는 이벤트 핸들러가 아니다)
 &amp;nbsp; &amp;nbsp;function bbb(a, b) {
 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;console.log(a * b)
 &amp;nbsp;  }
 &amp;nbsp; &amp;nbsp;$('#aaa').click(function () {
 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;bbb(3, 5);
 &amp;nbsp;  });
&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description>
      <category>JavaScript</category>
      <author>수이르</author>
      <guid isPermaLink="true">https://cokar.tistory.com/15</guid>
      <comments>https://cokar.tistory.com/15#entry15comment</comments>
      <pubDate>Tue, 11 Dec 2018 11:30:29 +0900</pubDate>
    </item>
    <item>
      <title>[HTML] 텍스트 관련 태그 모음</title>
      <link>https://cokar.tistory.com/14</link>
      <description>&lt;pre mdtype=&quot;fences&quot; cid=&quot;n152&quot; lang=&quot;html&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded md-focus&quot; spellcheck=&quot;false&quot; style=&quot;box-sizing: border-box; overflow: visible; font-family: var(--monospace); font-size: 0.9em; break-inside: avoid; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: rgb(248, 248, 248); border: 1px solid rgb(231, 234, 237); border-radius: 3px; padding: 8px 4px 6px; margin-bottom: 15px; margin-top: 15px; width: inherit; color: rgb(51, 51, 51); position: relative !important;&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;의미 없는 bold체&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;b&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;strong&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;중요한 의미의 bold체&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;strong&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;의미 없는 italic체&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;i&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;em&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;강조하는 italic체&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;em&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;small&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;small text 지정&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;small&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;mark&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;형광펜 표시&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;mark&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;del&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;취소선 표시&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;del&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;ins&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;추가된 text 지정&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;ins&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;sub&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;아래 쓰인 text&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;sub&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;sup&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;위에 쓰인 text&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;sup&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;p&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;본문에 쓰이는 text&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;q&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;인용문을 지정하는 q태그, 큰 따옴표로 감싼다&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;q&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&amp;lt;/&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;p&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;cm-tag&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;hr&lt;/span&gt;&lt;span class=&quot;cm-tag cm-bracket&quot; style=&quot;box-sizing: border-box; color: rgb(17, 119, 0);&quot;&gt;&amp;gt;&lt;/span&gt;수평줄(빈요소)&lt;/span&gt;&lt;/pre&gt;&lt;div&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>HTML &amp;amp; CSS</category>
      <author>수이르</author>
      <guid isPermaLink="true">https://cokar.tistory.com/14</guid>
      <comments>https://cokar.tistory.com/14#entry14comment</comments>
      <pubDate>Tue, 4 Dec 2018 15:31:14 +0900</pubDate>
    </item>
    <item>
      <title>[JS] ES6 기본</title>
      <link>https://cokar.tistory.com/13</link>
      <description>&lt;pre mdtype=&quot;fences&quot; cid=&quot;n157&quot; lang=&quot;javascript&quot; class=&quot;md-fences md-end-block ty-contain-cm modeLoaded&quot; spellcheck=&quot;false&quot; style=&quot;box-sizing: border-box; overflow: visible; font-family: var(--monospace); font-size: 0.9em; break-inside: avoid; white-space: normal; background-image: inherit; background-position: inherit; background-size: inherit; background-repeat: inherit; background-attachment: inherit; background-origin: inherit; background-clip: inherit; background-color: rgb(248, 248, 248); border: 1px solid rgb(231, 234, 237); border-radius: 3px; padding: 8px 4px 6px; margin-bottom: 15px; margin-top: 15px; width: inherit; color: rgb(51, 51, 51); position: relative !important;&quot;&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;script&lt;/span&gt;&lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// 값과 리터럴(값의 표기법)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-string-2&quot; style=&quot;box-sizing: border-box; color: rgb(255, 85, 0);&quot;&gt;`let and const`&lt;/span&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// 변수 선언&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// let 은 값 없이 명만 선언 가능&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(119, 0, 136);&quot;&gt;let&lt;/span&gt; &lt;span class=&quot;cm-def&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 255);&quot;&gt;six&lt;/span&gt;, &lt;span class=&quot;cm-def&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 255);&quot;&gt;two&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;six&lt;/span&gt; &lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;55&lt;/span&gt;, &lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;two&lt;/span&gt; &lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;2&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;six&lt;/span&gt; &lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;' '&lt;/span&gt; &lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;two&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;six&lt;/span&gt; &lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;7&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;six&lt;/span&gt; &lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;19&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;six&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// const nine; const 는 변수 명과 값을 대입해주어야 한다&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(119, 0, 136);&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;cm-def&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 255);&quot;&gt;nine&lt;/span&gt; &lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;9&lt;/span&gt;, &lt;span class=&quot;cm-def&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 255);&quot;&gt;ten&lt;/span&gt; &lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;10&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;nine&lt;/span&gt; &lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;' '&lt;/span&gt; &lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;+&lt;/span&gt; &lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;ten&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;//const nine = 99; 최초 선언 후 다른 값 대입 불가능&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;//안 변하는 값이면 let 보다는 const 를 사용하는 것이 좋음&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span cm-text=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt;​&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// 식별자(Identifier) = 변수 명&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// 숫자, 알파벳, 달러문자, 언더바 포함 가능&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// 숫자로 시작 X, 예약어 사용 X&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(119, 0, 136);&quot;&gt;let&lt;/span&gt; &lt;span class=&quot;cm-def&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 255);&quot;&gt;foo&lt;/span&gt; &lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'ff'&lt;/span&gt;, &lt;span class=&quot;cm-def&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 255);&quot;&gt;_underbar&lt;/span&gt; &lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;100&lt;/span&gt;, &lt;span class=&quot;cm-def&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 255);&quot;&gt;$jquery&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span cm-text=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt;​&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// 리터럴 형태 반환&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'리터럴 형태 반환 - typeof x'&lt;/span&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(119, 0, 136);&quot;&gt;typeof&lt;/span&gt; &lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;0.1111&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span cm-text=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt;​&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// 정수 = true, 실수 = false&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'정수인지 실수인지 - Number.isInteger(x)'&lt;/span&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;Number&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;isInteger&lt;/span&gt;(&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;six&lt;/span&gt;&lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;two&lt;/span&gt;));&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span cm-text=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt;​&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// 문자열을 number 타입으로 변환&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'문자열을 number 타입으로 변환 - parseInt()/parseFloat()'&lt;/span&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;parseInt&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'123'&lt;/span&gt;); &lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// 123&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;parseInt&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'110'&lt;/span&gt;, &lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;2&lt;/span&gt;); &lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// 문자열을 2진수로 간주&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;parseFloat&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'12.323'&lt;/span&gt;); &lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// 12.323&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;parseInt&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'hello'&lt;/span&gt;); &lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// NaN&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span cm-text=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt;​&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// NaN 가 되는 경우&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'NaN 이 되는 경우 - 0/0, 1/문자, NaN'&lt;/span&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;0&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'x'&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-atom&quot; style=&quot;box-sizing: border-box; color: rgb(34, 17, 153);&quot;&gt;NaN&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;Number&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;NaN&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span cm-text=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt;​&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// NaN(Not a NUmber) 판별&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'NaN 인 경우에만 True 반환 - Number.isNaN(x)/Object.is(x, NaN)'&lt;/span&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;Number&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;isNaN&lt;/span&gt;(&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;parseInt&lt;/span&gt;(&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;foo&lt;/span&gt;))); &lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// NaN 일 경우에만 true 반환&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;Number&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;isNaN&lt;/span&gt;(&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;Number&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;NaN&lt;/span&gt;));&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;Object&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;is&lt;/span&gt;(&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;_underbar&lt;/span&gt;, &lt;span class=&quot;cm-atom&quot; style=&quot;box-sizing: border-box; color: rgb(34, 17, 153);&quot;&gt;NaN&lt;/span&gt;));&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span cm-text=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt;​&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// const input = prompt('정수를 입력하세요');&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// const num = parseInt(input); // 숫자 외 모두 NaN 반환&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// if (Number.isNaN(num)) {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// &amp;nbsp; &amp;nbsp; alert('정수가 아닙니다.');&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// } else {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// &amp;nbsp; &amp;nbsp; const result = num * 2;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// &amp;nbsp; &amp;nbsp; alert(`${num}의 두 배는 ${result} 입니다.`); // ES6 - 템플릿 리터럴&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span cm-text=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt;​&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// Math 객체&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;Math&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;abs&lt;/span&gt;(&lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;456&lt;/span&gt;)); &lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// 절대값&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;Math&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;ceil&lt;/span&gt;(&lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;1.003&lt;/span&gt;)); &lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// 올림 2&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;Math&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;ceil&lt;/span&gt;(&lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;1.003&lt;/span&gt;)); &lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// 올림 -1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;Math&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;floor&lt;/span&gt;(&lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;1.9465&lt;/span&gt;)); &lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// 내림 1&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;Math&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;floor&lt;/span&gt;(&lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;1.9465&lt;/span&gt;)); &lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// 내림 -2&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;Math&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;round&lt;/span&gt;(&lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;3.4465&lt;/span&gt;)); &lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// 반올림 3&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;Math&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;round&lt;/span&gt;(&lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;3.4465&lt;/span&gt;)); &lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// 반올림 -3&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;Math&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;round&lt;/span&gt;(&lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;3.5465&lt;/span&gt;)); &lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// 반올림 4&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;Math&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;round&lt;/span&gt;(&lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;3.5465&lt;/span&gt;)); &lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// 반올림 -4&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;Math&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;trunc&lt;/span&gt;(&lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;4.4465&lt;/span&gt;)); &lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// 소수점 이하 제거 4&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;Math&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;trunc&lt;/span&gt;(&lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;4.4465&lt;/span&gt;)); &lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// 소수점 이하 제거 -4&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;Math&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;trunc&lt;/span&gt;(&lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'-4.4465'&lt;/span&gt;)); &lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// 소수점 이하 제거 -4 (Number 형태로 반환)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span cm-text=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt;​&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(119, 0, 136);&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;cm-def&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 255);&quot;&gt;spr&lt;/span&gt;&lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'spread function'&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(119, 0, 136);&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;cm-def&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 255);&quot;&gt;arr&lt;/span&gt; &lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;=&lt;/span&gt; [&lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;1&lt;/span&gt;,&lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;2&lt;/span&gt;,&lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;3&lt;/span&gt;];&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-meta&quot; style=&quot;box-sizing: border-box; color: rgb(85, 85, 85);&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;spr&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-meta&quot; style=&quot;box-sizing: border-box; color: rgb(85, 85, 85);&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;arr&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;Math&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;max&lt;/span&gt;(&lt;span class=&quot;cm-meta&quot; style=&quot;box-sizing: border-box; color: rgb(85, 85, 85);&quot;&gt;...&lt;/span&gt;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;arr&lt;/span&gt;));&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span cm-text=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt;​&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// number 타입의 메소드&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;  (&lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;12345&lt;/span&gt;).&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;toString&lt;/span&gt;(); &lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// '12345'&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;  (&lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;12345&lt;/span&gt;).&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;toLocaleString&lt;/span&gt;(); &lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// '12,345'&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;  (&lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;1.2345&lt;/span&gt;).&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;toFixed&lt;/span&gt;(&lt;span class=&quot;cm-number&quot; style=&quot;box-sizing: border-box; color: rgb(17, 102, 68);&quot;&gt;2&lt;/span&gt;); &lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// '1.23'&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span cm-text=&quot;&quot; style=&quot;box-sizing: border-box;&quot;&gt;​&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-comment&quot; style=&quot;box-sizing: border-box; color: rgb(170, 85, 0);&quot;&gt;// 템플릿 리터럴&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(119, 0, 136);&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;cm-def&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 255);&quot;&gt;txt1&lt;/span&gt; &lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'sdfsdf'&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-keyword&quot; style=&quot;box-sizing: border-box; color: rgb(119, 0, 136);&quot;&gt;const&lt;/span&gt; &lt;span class=&quot;cm-def&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 255);&quot;&gt;txt2&lt;/span&gt; &lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;cm-string&quot; style=&quot;box-sizing: border-box; color: rgb(170, 17, 17);&quot;&gt;'fshgsg'&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt; &amp;nbsp;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;console&lt;/span&gt;.&lt;span class=&quot;cm-property&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;log&lt;/span&gt;(&lt;span class=&quot;cm-string-2&quot; style=&quot;box-sizing: border-box; color: rgb(255, 85, 0);&quot;&gt;`template literal is ${&lt;/span&gt;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;txt1&lt;/span&gt;&lt;span class=&quot;cm-string-2&quot; style=&quot;box-sizing: border-box; color: rgb(255, 85, 0);&quot;&gt;}&lt;/span&gt; &lt;span class=&quot;cm-string-2&quot; style=&quot;box-sizing: border-box; color: rgb(255, 85, 0);&quot;&gt;${&lt;/span&gt;&lt;span class=&quot;cm-variable&quot; style=&quot;box-sizing: border-box; color: rgb(0, 0, 0);&quot;&gt;txt2&lt;/span&gt;&lt;span class=&quot;cm-string-2&quot; style=&quot;box-sizing: border-box; color: rgb(255, 85, 0);&quot;&gt;}`&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span class=&quot;cm-operator&quot; style=&quot;box-sizing: border-box; color: rgb(152, 26, 26);&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;cm-string-2&quot; style=&quot;box-sizing: border-box; color: rgb(255, 85, 0);&quot;&gt;/script&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div&gt;&lt;span role=&quot;presentation&quot; style=&quot;box-sizing: border-box; padding-right: 0.1px;&quot;&gt;&lt;span class=&quot;cm-string-2&quot; style=&quot;box-sizing: border-box; color: rgb(255, 85, 0);&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description>
      <category>JavaScript</category>
      <author>수이르</author>
      <guid isPermaLink="true">https://cokar.tistory.com/13</guid>
      <comments>https://cokar.tistory.com/13#entry13comment</comments>
      <pubDate>Wed, 21 Nov 2018 17:58:08 +0900</pubDate>
    </item>
  </channel>
</rss>