Перейти к основному содержанию
Zoro
Вопросы
Таймер
Резервное копирование
Главная
/
🟢 Node.js
/
Вопросы 100
Node.js:
What is the difference between path.join() and path.resolve()?
🎯
Режим фокуса
100
🟢
Node.js
🌱 junior
Снять отметку
What is the difference between path.join() and path.resolve()?
join
— concat.
resolve
— absolute.
javascript
Копировать
1
path
.
join
(
"/foo"
,
"bar"
)
2
path
.
resolve
(
"foo"
,
"bar"
)
join
— relative.
resolve
— absolute.
Больше вопросов по Node.js
What is Node.js and what is it used for?
What is the event loop in Node.js?
What is the difference between process.nextTick() and setImmediate() in Node.js?
What is the difference between setTimeout() and setInterval() in Node.js?
What is the difference between callback and promise in Node.js?
What is the difference between __dirname and __filename?
How does the event loop handle microtasks vs macrotasks in Node.js?
Назад к категории Node.js