SHARE
TWEET

Untitled

a guest Aug 26th, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 1๋ฒˆ ๋‹ต : ์ž๋ฐ”์Šคํฌ๋ฆฝํŠธ๋Š” ํŽ˜์ด์ง€์˜ ๋™์  ์ฒ˜๋ฆฌ๋ฅผ ์œ„ํ•ด ์‚ฌ์šฉํ•˜๋Š” ํ”„๋กœ๊ทธ๋ž˜๋ฐ ์–ธ์–ด์ด๋‹ค. ์ฃผ๋กœ ์ด๋ฒคํŠธ ์ฒ˜๋ฆฌ ๋“ฑ์˜ ๊ธฐ๋Šฅ์„ ๋‹ด๋‹นํ•œ๋‹ค.
  2.           ๋ฐ˜๋ฉด, html์€ ํŽ˜์ด์ง€ ๊ตฌ์กฐ, css๋Š” ํŽ˜์ด์ง€๋ฅผ ๊พธ๋ฏธ๋Š”๋ฐ ์ฃผ๋กœ ์‚ฌ์šฉ๋œ๋‹ค.
  3.          
  4. 2๋ฒˆ ๋‹ต : 1. ๋‚ด์šฉ ์ถœ๋ ฅ
  5.          2. 3
  6.          3. ์—๋Ÿฌ ๋ฐœ์ƒ
  7.          4. 5
  8.          5. let์€ ๋ณ€์ˆ˜(๋ฐ”๋€” ์ˆ˜ ์žˆ์Œ), const๋Š” ์ƒ์ˆ˜(๋ฐ”๋€” ์ˆ˜ ์—†์Œ)
  9.  
  10. 3๋ฒˆ ๋‹ต : 1,1,3,4,6
  11.  
  12. 4๋ฒˆ ๋‹ต : 1. ์•ˆ๋…•ํ•˜์„ธ์š”  2. ํƒ€์ž…์€ ๋น„๊ตํ•˜์ง€ ์•Š์œผ๋ฏ€๋กœ else if๋ฌธ์œผ๋กœ ๋“ค์–ด๊ฐ€ ์ˆ˜๋ฐ•์ž…๋‹ˆ๋‹ค๋ฅผ ์ถœ๋ ฅํ•˜๊ฒŒ๋œ๋‹ค.
  13. 5๋ฒˆ ๋‹ต :
  14.   const point = 1;
  15.  
  16. switch(point){
  17.   case 8 :
  18.     console.log('์•„์ง ์กฐ๊ธˆ ๋‚จ์œผ์…จ๋„ค์š”');
  19.     break;
  20.  
  21.   case 9 :
  22.     console.log('1 ํฌ์ธํŠธ ๋‚จ์œผ์…จ์Šต๋‹ˆ๋‹ค.');
  23.     break;
  24.  
  25.   case 10:
  26.     console.log('ํฌ์ธํŠธ๋ฅผ ์ „๋ถ€ ๋ชจ์œผ์…จ์Šต๋‹ˆ๋‹ค.');
  27.     break;
  28.  
  29.   default:
  30.     console.log('์•„์ง ํฌ์ธํŠธ๋ฅผ ๋” ์Œ“์œผ์…”์•ผ ๋ฉ๋‹ˆ๋‹ค.');
  31.  
  32. }
  33.  
  34.  
  35. ์‹ฌํ™” 1๋ฒˆ ๋‹ต : 1. ๋นฝํ‹ฑ ``
  36.               2. const name = '๋ฐ•๊ด€์šฉ';
  37. console.log("Hello Javascript? I'm" + ' '+name);
  38. console.log(`Hello Javascript? I'm ${name}`);
  39.  
  40.               3.
  41. function name(name){
  42.   return console.log(`Hello Javascript? I'm ${name}`);
  43. }
  44.  
  45. const result = name('๋ฐ•๊ด€์šฉ');
  46. console.log(result);
  47.              
  48.               4.
  49.               const name = (name) => console.log(`Hello Javascript! I'm ${name}`);
  50.               name('๋ฐ•๊ด€์šฉ');
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