Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- exports
- __filename
- Global
- 이분탐색
- 파라메트릭 서치
- 프롬프트
- CommonJS
- 이진탐색
- 우테코 프리코스
- await
- 프롬프트엔지니어링
- 다이내믹 임포트
- JPA
- 객체지향의 사실과 오해
- Console
- 프리코스
- import.meta.url
- Async
- 우테코
- 8기
- ECMAScript
- 노드 내장 객체
- 백준
- 안드로이드 스튜디오
- 객체지향
- HttpCookieOAuth2AuthorizationRequestRepository
- 순환참조
- nodejs
- oAuth2
- __dirname
Archives
- Today
- Total
목록Console (1)
코딩하는 감쟈
global, console, 타이머
global 브라우저의 window와 같은 전역 객체이다. 따라서 모든 파일에서 접근할 수 있다. globalA.js module.exports = () => global.message; globalB.js const A = require('./globalA'); global.message = '안녕하세요'; console.log(A()); globalA 모듈의 함수는 global, message 값을 반환한다. globalB에서는 global 객체에 속성명이 message인 값을 대입하고 globalA 모듈의 함수를 호출한다. console console.js const string = 'abc'; const number = 1; const boolean = true; const obj = { outs..
Back-End/nodejs
2024. 3. 9. 18:51