JS20 배열과 객체의 유사점과 차이점 1. 배열과 객체 생성 > 동일한 출력값을 보여준다. //배열 생성 const toolArray = ['html', 'css', 'js']; //1. 출력 console.log(toolArray[0]); // 출력값 : html console.log(toolArray[1]); // 출력값 : css console.log(toolArray[2]); // 출력값 : js //객체 생성 const tollObj = { '0' : 'html', '1' : 'css', '2' : 'js' } console.log(tollObj[0]); // 출력값 : html console.log(tollObj[1]); // 출력값 : css console.log(tollObj[2]); // 출력값 : js 2. typeof 연.. 2023. 7. 11. [JS] input[type="range"] 별점 드래그 📢 input[type="range"] 별점 드래그 구현 See the Pen input[type="range"] star by 조민혁 (@iqgzrljw-the-typescripter) on CodePen. * 빈 별과 5개의 별이 찬 이미지 2개를 겹친다. * input[type="rang"]의 value 만큼 5개의 별 이미지의 width값을 조절한다. 2023. 7. 7. 이전 1 2 3 4 다음