-
Less than 1 minute read
μ
λ ₯κ° 3κ°λ₯Ό μ λ¬ λ°μ μ½μμ°½μ λμ ν© μ°μΆνκΈ° See the Pen μ
λ ₯κ° 3κ°λ₯Ό μ λ¬ λ°μ λμ μ°μΆνκΈ° by Jinsol (@losuif) on CodePen. html <!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>JS Array</title> </head> <body> <div id="wrap"> <h1>Array (λ°°μ΄)</h1> <h2>μ
λ ₯κ° 3κ°λ₯Ό μ λ¬ λ°μ λμ ...
Continue reading...
-
1 minute read
볡ν©λμ
μ°μ°μλ₯Ό μ¬μ©ν μμμ λμ μ°κ²° See the Pen 볡ν©λμ
μ°μ°μλ₯Ό μ¬μ©ν λμ μ°κ²° by Jinsol (@losuif) on CodePen. html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>μμμ λμ μ°κ²°</title> <link rel="stylesheet" href="style.css"> </head> <body> <div id="wrap"> <h1>μμμ λμ μ°κ²°</h1> <div id="ins"> <!-- μμ μΆκ°...
Continue reading...
-
1 minute read
λ°°μ΄ (Array) λ°°μ΄ (Array) λ°°μ΄ = λ°°μ΄λ³μ, κ°λ€μ΄ μμ°¨μ μΌλ‘ μ°κ²°λ μλ£ κ΅¬μ‘° λ°°μ΄ μ μΈ let λ³μλͺ
= [κ°]; let λ³μλͺ
= new Array(κ°); λ°°μ΄μ μ μ₯λλ κ° μΈλ±μ€μ κ°μ μλ£νμ΄ λ¬λΌλ λ¨ ex) let arr = [3, true, "κ°λλ€"]; κ° λ³κ²½ κ°λ₯ const fruits = ["apple", "orange", "kiwi"]; fruits[2] = "peach";...
Continue reading...
-
3 minute read
μ£Όμ¬μλ₯Ό λ λ² λμ Έμ λμ¨ μ«μμ ν©μ΄ 4μ λ°°μκ° λλ κ²½μ° [μλ° JAVA] μ£Όμ¬μ ν΄μ¦ for i in range (1, 7): for j in range(1, 7): k = i + j; if k % 4 == 0: print(i, j, end='\n') # μΆλ ₯κ²°κ³Ό 1 3 2 2 2 6 3 1...
Continue reading...
-
Less than 1 minute read
λ°λ³΅λ¬Έ forλ¬Έ for λ°λ³΅λ³μ in μμμ΄: μ½λ μμμ΄μ λ€μ΄κ° μ μλ λ°μ΄ν° νμμλ 리μ€νΈ, νν, λ¬Έμμ΄μ΄ μλ€ (μμμ΄μ μλμ§λ§ setμ΄λ λμ
λ리λ κ°λ₯) whileλ¬Έ while 쑰건문: μ½λ μ‘°κ±΄μ΄ μ°ΈμΈ λμ μ½λ λ°λ³΅ν΄μ μν range ν¨μ forλ¬Έκ³Ό ν¨κ» λ§μ΄ μ¬μ© range(num1, num2) : num1λΆν° 1μ© μ¦κ°, num2 μ΄μ (num2 ν¬ν¨ X)κΉμ§ μ¦κ°νλ©΄μ λ§λ€μ΄μ§...
Continue reading...