DEV Community

mmvergara
mmvergara

Posted on • Edited on

2 1

Javascript Tagalog - Nullish Coalescing Operator

Ano ngaba ang Nullish Coalescing Operator

Ang Nullish Coalescing ay isang pperator syntax ng javascript.
Mukha siyang ganto na nasa gitna ng dalawang values

Value ?? Value

Mamimili siya sa dalawang values kung ano i rereturn niya,


if left side is null or undefined kukunin niya right side
if left side is not null or undefined kukunin niya is left side


Eto mga samples if null or undefined left side:
 Javascript Tagalog

Eto mga samples if hindi null or undefined left side:

 Javascript Philippines Tagalog


eto yung comparison niya sa short circuiting sa || ('OR operator')
may kinalaman kasi sa pagiging falsy value ng empty string '' or the number 0 na otherwise iba ang behavior sa || operator

 Javascript Philippines Tagalog


More tagalog Javascript Learning Resources:
https://javascript-methods-in-tagalog.vercel.app/

Image of AssemblyAI tool

Challenge Submission: SpeechCraft - AI-Powered Speech Analysis for Better Communication

SpeechCraft is an advanced real-time speech analytics platform that transforms spoken words into actionable insights. Using cutting-edge AI technology from AssemblyAI, it provides instant transcription while analyzing multiple dimensions of speech performance.

Read full post

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Community—every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple “thank you” goes a long way—express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay