SHARE
TWEET

Untitled

a guest Aug 26th, 2019 102 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ### ํ•„์ˆ˜1
  2. JS(Javascript)๋Š” ์ฝ˜ํ…์ธ ๋ฅผ ๋ฐ”๊พธ๊ณ  ํŽ˜์ด์ง€๋ฅผ ๋™์ ์œผ๋กœ ๊พธ๋ฉฐ์ฃผ๋Š” ์—ญํ• ์„ ํ•˜๋Š” ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์–ธ์–ด์ด๋ฉฐ </br>
  3. HTML์€ ์›น ํŽ˜์ด์ง€์˜ ๊ตฌ์กฐ, CSS๋Š” ์›นํŽ˜์ด์ง€ ์ฝ˜ํ…์ธ ์˜ ์‹œ๊ฐ๊ตฌ์กฐ๋ฅผ ๋‹ด๋‹นํ•œ๋‹ค๋ฉด ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ๋Š” ์ฆ‰ ์›นํŽ˜์ด์ง€์˜ ๋™์ ์ฒ˜๋ฆฌ๋ฅผ ๋‹ด๋‹นํ•œ๋‹ค. </br>
  4. ์›นํŽ˜์ด์ง€ ๋ฟ๋งŒ ์•„๋‹ˆ๋ผ js๋„๊ตฌ ํ†ตํ•ด ๋ฐ์Šคํฌํƒ‘์•ฑ ,๋ชจ๋ฐ”์ผ์•ฑ์„ ๋งŒ๋“ค์ˆ˜ ์žˆ๋‹ค.
  5.  
  6. ### ํ•„์ˆ˜2
  7. 1. console.log() ๋Š” ์ฝ˜์†”์— ํŠน์ • ๋‚ด์šฉ์„ ์ถœ๋ ฅํ•˜๋ผ๋Š” ๊ฒƒ์„ ์˜๋ฏธํ•œ๋‹ค.
  8. 2. 3
  9. 3. "SyntaxError: /src/index.js: Identifier 'a' has already been declared" ๋ผ๋Š” ๊ฒฐ๊ณผ๊ฐ€ ๋‚˜์˜จ๋‹ค.
  10. 4. ๊ฒฐ๊ณผ๋Š” 5๊ฐ€ ๋‚˜์˜จ๋‹ค.
  11. 5. let์€ ๊ฐ’์„ ์žฌํ• ๋‹น ๊ฐ€๋Šฅํ•˜์ง€๋งŒ const๋Š” ๊ฐ’์„ ์žฌํ• ๋‹น ๋ถˆ๊ฐ€๋Šฅํ•˜๋‹ค.
  12. ### ํ•„์ˆ˜3
  13. ๊ฒฐ๊ณผ๊ฐ’์€ 1,1,3,4,6
  14.  
  15. ### ํ•„์ˆ˜4-1
  16. ๊ฒฐ๊ณผ๋Š” '์•ˆ๋…•ํ•˜์„ธ์š”'
  17.  
  18. ### ํ•„์ˆ˜4-2
  19. != ๋Š” ํƒ€์ž… ๊ฒ€์‚ฌ๊นŒ์ง€ ํ•˜์ง€ ์•Š์œผ๋ฏ€๋กœ
  20. ๊ฒฐ๊ตญ ๊ฒฐ๊ณผ๋Š” '์ˆ˜๋ฐ• ์ž…๋‹ˆ๋‹ค'
  21.  
  22. ### ํ•„์ˆ˜5
  23. ```js
  24. const point = '9';
  25. switch (point) {
  26.   case '8':
  27.     console.log('์•„์ง ์กฐ๊ธˆ ๋‚จ์œผ์…จ๋„ค์š”');
  28.     break;
  29.   case '9':
  30.     console.log('1 ํฌ์ธํŠธ ๋‚จ์œผ์…จ์Šต๋‹ˆ๋‹ค');
  31.     break;
  32.   case '10':
  33.     console.log('ํฌ์ธ๋ฅผ ์ „๋ถ€ ๋ชจ์œผ์…จ์Šต๋‹ˆ๋‹ค');
  34.     break;
  35.   default:
  36.     console.log('์•„์ง ํฌ์ธํŠธ๋ฅผ ๋” ์Œ“์œผ์…”์•ผ ๋ฉ๋‹ˆ๋‹ค');
  37. }
  38. ```
  39.  
  40. ### ์‹ฌํ™”1
  41. 1. ``๋ผ๋Š” ๊ธฐํ˜ธ๋ฅผ ์“ฐ๋ฉฐ ์ด๋ฆ„์€ ๊ทธ๋ ˆ์ด๋ธŒ ๋˜๋Š” ๋นฝํ‹ฑ์ด๋ผ ํ•œ๋‹ค.
  42. 2.
  43. ```js
  44. const name = 'Hyeong Joon Koo'
  45.   console.log("Hello Javascript? I'm"+' '+ name +'!');
  46. ```
  47. ```js
  48. const name = 'Hyeong Joon Koo'
  49.   console.log(`Hello Javascript? I'm ${name}!`)
  50. }
  51. ```
  52. 3.
  53. ```js
  54. function hello(name) {
  55.   return console.log(`Hello Javasript? I'm ${name}!`);
  56. }
  57.  
  58. const result = hello('Hyeong Joon Koo');
  59. ```
  60. 4.
  61. ```js
  62. const name = name => `Hello Javasript? I'm ${name}!`;
  63. console.log(name('Hyeong Joon Koo'));
  64. ```
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top