What is Node.js?
Example:
console.log('Hello, Node.js!');
복습용 저장
복습용 저장
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
WithoutBook은 주제별 면접 질문, 온라인 연습 테스트, 튜토리얼, 비교 가이드를 하나의 반응형 학습 공간으로 제공합니다.
Know the top NodeJS interview questions and answers for freshers and experienced candidates to prepare for job interviews.
Know the top NodeJS interview questions and answers for freshers and experienced candidates to prepare for job interviews.
Search a question to view the answer.
Example:
console.log('Hello, Node.js!');
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
npm install package_name
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
npm init
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
global.myVariable = 'Hello';
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
const fs = require('fs');
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
const os = require('os');
console.log(os.totalmem());
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
const fs = require('fs');
fs.readFile('file.txt', 'utf8', (err, data) => { /* handle file content */ });
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
const url = require('url');
const parsedUrl = url.parse('https://example.com/path?query=value', true);
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
require('dotenv').config();
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
const server = require('http').createServer((req, res) => { /* handle request */ });
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
app.use((req, res, next) => { /* middleware logic */ next(); });
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
fs.readFile('file.txt', 'utf8', (err, data) => { /* handle file content */ });
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
console.log(process.env.NODE_ENV);
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
process.nextTick(() => { console.log('Next Tick'); });
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
const buffer = Buffer.from('Hello, Node.js');
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
console.log('Start');
setTimeout(() => console.log('Timeout'), 1000);
console.log('End');
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
const path = require.resolve('path');
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
app.use((req, res, next) => { /* middleware logic */ next(); });
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
module.exports = { key: 'value' };
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
const { spawn } = require('child_process');
const child = spawn('ls', ['-l']);
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
const net = require('net');
const server = net.createServer((socket) => { /* handle connection */ });
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
const cluster = require('cluster');
if (cluster.isMaster) { /* create workers */ } else { /* start server logic */ }
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
const crypto = require('crypto');
const hash = crypto.createHash('sha256').update('Hello').digest('hex');
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
"scripts": { "start": "node index.js", "test": "mocha test/*.js" }
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
try { /* code that may throw an error */ } catch (error) { /* handle error */ }
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
const EventEmitter = require('events');
class MyEmitter extends EventEmitter {}
const myEmitter = new MyEmitter();
myEmitter.on('event', () => console.log('Event emitted'));
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
const WebSocket = require('ws');
const wss = new WebSocket.Server({ port: 8080 });
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
app.use(middleware1);
app.use(middleware2);
app.use(middleware3);
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
pm2 start app.js
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.
Example:
const cors = require('cors');
app.use(cors());
이 항목을 북마크하거나, 어렵게 표시하거나, 복습 세트에 넣을 수 있습니다.