Похожие чаты

Can someone please tell me what is this syntax in

ES5 ?? code: https://github.com/QuodAI/tutorial-react-twitter-api-login/blob/main/express/src/lib/oauth-promise.js#L4
I just wanted to know the terminology? I did not find any on searching

12 ответов

23 просмотра

This is commonjs

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_operator

https://nodejs.org/api/modules.html#moduleexports

Adi- Автор вопроса
Darvesh 🍀
https://nodejs.org/api/modules.html#moduleexports

In that they are using require(filepath)(callbackFunc) what is this syntax called? Any specific name?

Adi
In that they are using require(filepath)(callbackF...

double.js module.exports = (num) => { return num * 2; } index.js const result = require("./double")(4) //8 //or const double = require("./double"); const result = double(4) //8

Edwing123
How would to use it?

You'll know if you open that link

Adi- Автор вопроса
Adi
Wow whats this syntax?

You have never used NodeJS?

Adi- Автор вопроса
Darvesh 🍀
You have never used NodeJS?

Used but seeing this syntax first time. 😅

Adi- Автор вопроса
Darvesh 🍀
You have never used NodeJS?

Is there any specific name or term for it? I want to see few more examples

Похожие вопросы

Обсуждают сегодня

Господа, а что сейчас вообще с рынком труда на делфи происходит? Какова ситуация?
Rꙮman Yankꙮvsky
29
А вообще, что может смущать в самой Julia - бы сказал, что нет единого стандартного подхода по многим моментам, поэтому многое выглядит как "хаки" и произвол. Короче говоря, с...
Viktor G.
2
@Benzenoid can you tell me the easiest, and safest way to bu.y HEX now?
Živa Žena
20
This is a question from my wife who make a fortune with memes 😂😂 About the Migration and Tokens: 1. How will the old tokens be migrated to the new $LGCYX network? What is th...
🍿 °anton°
2
30500 за редактор? )
Владимир
47
а через ESC-код ?
Alexey Kulakov
29
What is the Dex situation? Agora team started with the Pnetwork for their dex which helped them both with integration. It’s completed but as you can see from the Pnetwork ann...
Ben
1
Гайс, вопрос для разносторонее развитых: читаю стрим с юарта, нада выделять с него фреймы с определенной структурой, если ли чо готовое, или долбаться с ринг буффером? нада у...
Vitaly
9
Anyone knows where there are some instructions or discort about failed bridge transactions ?
Jochem
21
@lozuk how do I get my phex copies of my ehex from a atomic wallet, to move to my rabby?
Justfrontin 👀
11
Карта сайта