this question has answer here:
- how read api documentation newbs? 4 answers
i have come across type of syntax in node.js. can please explain [, in node.js/javascript?
examples of syntax have seen.
assert(value[, message])const name1 = value1 [, name2 = value2 [, ... [, namen = valuen]]];
you're looking @ function definitions in documentation, , you're seeing conventional way show 1 or more parameters optional. not valid javascript syntax.
for example, assert(value[, message]) means value parameter required, message optional. not put assert(value[, message]) in code; trigger syntax error.
Comments
Post a Comment