Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

js || vs ??

The OR operator || uses the right value if left is falsy,
  while the nullish coalescing operator ?? uses the right
  value if left is null or undefined.
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js
ADD COMMENT
Topic
Name
8+3 =