kairu – 14-23 Feb 7
I have a section in my code I don't really understand.
function nameOfFunction(a, b = null, c = null) { }
what does setting the something to = null
in the parameters do?UU
Unknown User•443d ago
C
chocokai•443d ago
oh gotcha!
UU
Unknown User•443d ago
C
chocokai•443d ago
what kind of usecase would these normally be used in? if you need something to be null but not undefined?
UU
Unknown User•443d ago
C
chocokai•443d ago
:0 this part sounds very useful
UU
Unknown User•443d ago
C
chocokai•443d ago
oh I see what you're saying, use one type to determine whether a specific variable needs to be handled before running a whole function on it if it has multiple possible types
UU
Unknown User•443d ago
C
chocokai•442d ago
thanks so much for helping me! sorry I got pulled into a meeting and couldn't respond immediately 😭
UU
Unknown User•442d ago
230KMembers
View on DiscordMore Posts
✅ – HalcyonXII – 12-44 Feb 4why this returns empty⛄Snowberb⛄ – 11-53 Feb 2What is it called the date that we use to calculate the time on JS? This description sucks but it wabrowinski – 11-15 Feb 1I want to display one picture in div. On click button, the next image should be visible within that ✅ – dmikester1 – 20-34 Jan 31I have a route in my Node server with this code:
```js
router.get('/getLinesQCWarningStatus', async