코딩테스트 by 원동휘 about Javascript
수박수박 -> n의 길이만큼 문자열리턴 by 원동휘
- function solution ( n ) { let answer = '' ; for ( let i = 0 ; i < n ; i ++ ) { answer += i % 2 === 0
- log ( answer ) return answer ; } solution ( 4 )
- function solution ( n ) { let answer = '' ; answer = ` ${ '수박'
lit 프로젝트 시작하기 (4/n) - 바인딩 by 이창주 about Javascript,HTML
- property } from "lit-element" ; @ customElement ( "child-tomato" ) class ChildTomato extends LitElement { render ( ) { return html `
i'm child-tomato
` ; } } declare global { interface HTMLElementTagNameMap { "child-tomato" : ChildTomato ; } } - /components/child-tomato" ; @ customElement ( "lit-tomato" ) class Tomato extends LitElement { render ( ) { return html `
` ; } } declare global { interface HTMLElementTagNameMap { "lit-tomato" : Tomato ; } }자식
- property } from "lit-element" ; @ customElement ( "child-tomato" ) class ChildTomato extends LitElement { render ( ) { return html ` 자식 :` ; } } declare global { interface HTMLElementTagNameMap { "child-tomato" : ChildTomato ; } }