DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR TYPESCRIPT
how to make a parameter optional in typescript
// Optional parameter function foo(x?: number) { console.log("x : "+ x); } foo(); foo(6);
PREVIOUS
NEXT
Tagged:
#parameter
#optional
#typescript
ADD COMMENT
Topic
COMMENT
Name
3+8 =
Submit