본문 바로가기

반응형

: JavaScript

(3)
npm ci _ vs _ npm install github action https://stackoverflow.com/questions/52499617/what-is-the-difference-between-npm-install-and-npm-ci What is the difference between "npm install" and "npm ci"? I'm working with continuous integration and discovered the npm ci command. I can't figure what the advantages are of using this command for my workflow. Is it faster? Does it make the test har... stackoverflow.com
자바와 자바스크립트의 차이점 What is the difference between JavaScript and Java? 이름을 보면 자바스크립트는 마치 자바와 관련이 있는 것처럼 들리지만, 사실 개구라 사실상 이것의 관계는 햄스터와 햄의 관계와 같다. 다른 예로는 인도와 인도네시아의 관계와 같다. 결론은 일도 관련이 없다는 것 (사실 하나도 관계 없는건 아니긴 함, 인도와 인도네시아도 공통점이 존재하긴 하잖아??) 나는 자바는 기존에 계속 사용했었고, 자바스크립트는 작년에 처음 사용해 봤다. 차이점에 이야기하기 앞서, 2가지의 관점으로 나눠 볼 예정이다. 1. 코딩 할 때의 차이점 2. 언어적 특성의 차이점 먼저 코딩할 때의 관점에서 얘기해보겠다. 개인적으로 큰 차이라고 느꼈던 점을 비교해보려고 한다. 가장 큰 차이점이라고 생각 ..
[JavaScript] 배열 합치는 방법과 속도 비교 [JavaScript] how to combine array and what is the fastest method 우선 두 배열을 합치는 방법에 대해서 알아보자. 방법은 아래와 같이 3가지 방법이 있다. 1. concat() var existed = [ 1, 2, 3 ]; var params = [ "hello", true, 7 ]; var other = existed.concat(params); 2. spread operator (...) var existed = [ 1, 2, 3 ]; var params = [ "hello", true, 7 ]; var other = [ ...existed, ...params ]; 3. spread operator and push (얘가 젤 빠름, 테스트는 아래 링..