8000 pre 태그 안에 ```javascript 코드가 노출됩니다. · Issue #3 · tipjs/javascript-style-guide · GitHub
[go: up one dir, main page]

Skip to content
pre 태그 안에 ```javascript 코드가 노출됩니다. #3
Open
@moonspam

Description

@moonspam

quote 태그의 들여쓰기가 필요합니다.
PS. 번역해주셔서 너무 감사합니다. (- -)(_ _)

현재 페이지

참조(References)

  • 2.1 Use const for all of your references; avoid using var.
  • 2.1 모든 참조는 const 를 사용하고, var 를 사용하지 마십시오.

Why? This ensures that you can't reassign your references, which can lead to bugs and difficult to comprehend code.

왜? 참조를 재할당 할 수 없으므로, 버그로 이어지고 이해하기 어려운 코드가 되는것을 방지합니다.

```javascript
// bad
var a = 1;
var b = 2;

// good
const a = 1;
const b = 2;
```

수정 페이지

참조(References)

  • 2.1 Use const for all of your references; avoid using var.

  • 2.1 모든 참조는 const 를 사용하고, var 를 사용하지 마십시오.

    Why? This ensures that you can't reassign your references, which can lead to bugs and difficult to comprehend code.

    왜? 참조를 재할당 할 수 없으므로, 버그로 이어지고 이해하기 어려운 코드가 되는것을 방지합니다.

    // bad
    var a = 1;
    var b = 2;
    
    // good
    const a = 1;
    const b = 2;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0