{"data":{"site":{"siteMetadata":{"title":"lastrites2018","author":"lastrites2018","siteUrl":"https://lastrites2018.netlify.com","comment":{"disqusShortName":"","utterances":"lastrites2018/gatsby-first-blog"},"sponsor":{"buyMeACoffeeId":""}}},"markdownRemark":{"id":"252157f2-f298-58fe-b472-33004c34e562","excerpt":"JavaScript Fundamentals Slides: Values and Types 프로그램이 실행되면, 다양한 데이터 조각들을 추적할 필요가 있음. 이러한 이유로 프로그래밍 언어에는 값 개념(notion of value)이 포함되는 경향이 있는데, 이것은 프로그램이 컴퓨터의 하드웨어 메모리에 저장함으로써 프로그램이 추적하는 데이터의 작은 단위이다. 우리는 실제로 값을 볼 수 없다. Sinppets of code ‘hi’ 컴퓨터 하드웨어 실제로 저장되는 값은 Type : String Data…","html":"<h2 id=\"javascript-fundamentals\"><a href=\"#javascript-fundamentals\" aria-label=\"javascript fundamentals permalink\" class=\"anchor\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>JavaScript Fundamentals</h2>\n<h4 id=\"slides-values-and-types\"><a href=\"#slides-values-and-types\" aria-label=\"slides values and types permalink\" class=\"anchor\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Slides: Values and Types</h4>\n<p>프로그램이 실행되면, 다양한 데이터 조각들을 추적할 필요가 있음.</p>\n<p>이러한 이유로 프로그래밍 언어에는 값 개념(notion of value)이 포함되는 경향이 있는데, 이것은 프로그램이 컴퓨터의 하드웨어 메모리에 저장함으로써 프로그램이 추적하는 데이터의 작은 단위이다.</p>\n<p>우리는 실제로 값을 볼 수 없다.</p>\n<p>Sinppets of code</p>\n<p>‘hi’</p>\n<p>컴퓨터 하드웨어 실제로 저장되는 값은</p>\n<p>Type : String</p>\n<p>Data : ‘hi’</p>\n<p>…</p>\n<h2 id=\"objectkeys-사용하기\"><a href=\"#objectkeys-%EC%82%AC%EC%9A%A9%ED%95%98%EA%B8%B0\" aria-label=\"objectkeys 사용하기 permalink\" class=\"anchor\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Object.keys 사용하기</h2>\n<div class=\"gatsby-highlight\" data-language=\"javascript\"><pre class=\"language-javascript\"><code class=\"language-javascript\"><span class=\"token keyword\">function</span> <span class=\"token function\">countNumberOfKeys</span><span class=\"token punctuation\">(</span>obj<span class=\"token punctuation\">)</span> <span class=\"token punctuation\">{</span>\n  <span class=\"token comment\">// your code here</span>\n  <span class=\"token keyword\">return</span> Object<span class=\"token punctuation\">.</span><span class=\"token function\">keys</span><span class=\"token punctuation\">(</span>obj<span class=\"token punctuation\">)</span><span class=\"token punctuation\">.</span>length\n<span class=\"token punctuation\">}</span> <span class=\"token comment\">//Object.keys(변수명)으로 Object의 키를 배열로 만든 다음에 길이 세기</span></code></pre></div>","frontmatter":{"title":"immersive 준비 Basic JavaScript Review","date":"September 06, 2018"}}},"pageContext":{"isCreatedByStatefulCreatePages":false,"slug":"/til/20180906 immersive 준비 Basic JavaScript Review/","previous":{"fields":{"slug":"/til/20180905 Git Command Patch Failed + JS Math + ES6/"},"frontmatter":{"title":"Git Command Patch Failed + JS Math + ES6","category":"TIL"}},"next":{"fields":{"slug":"/til/20180909 debugger/"},"frontmatter":{"title":"debugger","category":"TIL"}}}}