DEV Community

mmvergara
mmvergara

Posted on • Edited on

Javascript Tagalog - Equality & Strict Equality

Ano ngaba ang Equality and Strict Equality operator sa Javascript?
Basically yung equality operator i kukumpara niya lang yung dalawang values tapos mag rereturn siya ng true or false (boolean types). "Strict Equality" basahin niyo nalang sa baba

Syntax

Equality : value1 == value2
Strict Equality : value1 === value2

Examples

Javascript Tagalog Pinoy Strict Equality Equality


Normal vs Strict Equality
Sa Normal Equality sign i a-attempt niya i convert and compare mga values na different ang type, in this case String Type yung "1" but equal padin siya sa Number Type na 1
Javascript Tagalog Pinoy Strict Equality Equality
Pero sa Strict Equality hindi gagana yan, kase nga strict tulad ng parents niya.


yung mga Falsy values equals sila false
Javascript Tagalog Pinoy Strict Equality Equality
Pero sa Strict Equality False yarrn

Javascript Tagalog Pinoy Strict Equality Equality


maraming pang iba't-ibang values ang iba behavior sa equality operator, kunwari sa mga Objects,Arrays magkamukha sila pero false parin ang result kasi reference types sila.

Javascript Tagalog Pinoy Strict Equality Equality

I know medyo weird pero if magegets niyo on how javascript works under the hood, this totally makes sense. When you encounter mga problems sa mga equalities saglit lang silang i google in my opinion.


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

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

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

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay