{"id":20656,"date":"2025-05-10T19:15:13","date_gmt":"2025-05-10T16:15:13","guid":{"rendered":"https:\/\/fatihsoysal.com\/blog\/javascriptte-truthy-ve-falsy-degerler-her-gelistiricinin-bilmesi-gerekenler\/"},"modified":"2025-05-10T19:15:13","modified_gmt":"2025-05-10T16:15:13","slug":"javascriptte-truthy-ve-falsy-degerler-her-gelistiricinin-bilmesi-gerekenler","status":"publish","type":"post","link":"https:\/\/fatihsoysal.com\/blog\/javascriptte-truthy-ve-falsy-degerler-her-gelistiricinin-bilmesi-gerekenler\/","title":{"rendered":"JavaScript&#8217;te Truthy ve Falsy De\u011ferler: Her Geli\u015ftiricinin Bilmesi Gerekenler"},"content":{"rendered":"<p><body><\/p>\n<p>JavaScript&#8217;te Truthy ve Falsy De\u011ferler: Her Geli\u015ftiricinin Bilmesi Gerekenler<\/p>\n<p>JavaScript&#8217;te, ko\u015fullu ifadelerde (<code>if<\/code>, <code>while<\/code> vb.) kullan\u0131lan de\u011ferler,  &#8220;truthy&#8221; veya &#8220;falsy&#8221; olarak s\u0131n\u0131fland\u0131r\u0131l\u0131r. Bu, de\u011ferlerin do\u011fruluk de\u011ferlerini (<code>true<\/code> veya <code>false<\/code>) direkt olarak temsil etmesinden ziyade,  ko\u015fullu ifadeler i\u00e7erisinde nas\u0131l de\u011ferlendirildiklerini belirler.  Ba\u015fka bir deyi\u015fle,  bir de\u011fer <code>true<\/code> veya <code>false<\/code> olarak de\u011ferlendirilmez; bunun yerine,  bu de\u011ferler  <code>Boolean()<\/code> fonksiyonu ile  <code>true<\/code> veya <code>false<\/code> de\u011ferlerine d\u00f6n\u00fc\u015ft\u00fcr\u00fcl\u00fcr.<\/p>\n<h2>Falsy De\u011ferler<\/h2>\n<p>A\u015fa\u011f\u0131daki de\u011ferler JavaScript&#8217;te falsy olarak kabul edilir ve ko\u015fullu ifadelerde <code>false<\/code> gibi davran\u0131rlar:<\/p>\n<ul>\n<li><code>false<\/code><\/li>\n<li><code>0<\/code> (s\u0131f\u0131r)<\/li>\n<li><code>-0<\/code> (negatif s\u0131f\u0131r)<\/li>\n<li><code>0n<\/code> (B\u00fcy\u00fck tam say\u0131 s\u0131f\u0131r)<\/li>\n<li><code>\"\"<\/code> (bo\u015f string)<\/li>\n<li><code>null<\/code><\/li>\n<li><code>undefined<\/code><\/li>\n<li><code>NaN<\/code> (Not a Number)<\/li>\n<\/ul>\n<p>\u00d6rnek olarak; <\/p>\n<p><code><\/p>\n<pre>\nif (0) {\n  console.log(\"Bu kod \u00e7al\u0131\u015fmaz.\"); \/\/ \u00c7al\u0131\u015fmaz \u00e7\u00fcnk\u00fc 0 falsy'dir.\n}\n\nif (\"\" ) {\n  console.log(\"Bu kod da \u00e7al\u0131\u015fmaz.\"); \/\/ \u00c7al\u0131\u015fmaz \u00e7\u00fcnk\u00fc bo\u015f string falsy'dir.\n}\n<\/pre>\n<p><\/code><\/p>\n<h2>Truthy De\u011ferler<\/h2>\n<p>Falsy olmayan t\u00fcm de\u011ferler truthy olarak kabul edilir ve ko\u015fullu ifadelerde <code>true<\/code> gibi davran\u0131rlar.  Bu,  di\u011fer t\u00fcm say\u0131lar,  bo\u015f olmayan string&#8217;ler,  objeler ve diziler anlam\u0131na gelir.<\/p>\n<p>\u00d6rne\u011fin:<\/p>\n<p><code><\/p>\n<pre>\nif (1) {\n  console.log(\"Bu kod \u00e7al\u0131\u015f\u0131r.\"); \/\/ \u00c7al\u0131\u015f\u0131r \u00e7\u00fcnk\u00fc 1 truthy'dir.\n}\n\nif (\"Merhaba\") {\n  console.log(\"Bu kod da \u00e7al\u0131\u015f\u0131r.\"); \/\/ \u00c7al\u0131\u015f\u0131r \u00e7\u00fcnk\u00fc \"Merhaba\" truthy'dir.\n}\n\nif ([1,2,3]) {\n  console.log(\"Bu kod da \u00e7al\u0131\u015f\u0131r.\"); \/\/ \u00c7al\u0131\u015f\u0131r \u00e7\u00fcnk\u00fc dizi truthy'dir.\n}\n<\/pre>\n<p><\/code><\/p>\n<h2>Uygulama \u00d6rnekleri<\/h2>\n<p>Truthy ve falsy kavramlar\u0131,  kodun daha okunabilir ve \u00f6zl\u00fc olmas\u0131na yard\u0131mc\u0131 olur. \u00d6rne\u011fin, bir de\u011fi\u015fkenin de\u011ferinin olup olmad\u0131\u011f\u0131n\u0131 kontrol etmek i\u00e7in, de\u011fi\u015fkeni do\u011frudan ko\u015fullu ifadede kullanabiliriz:<\/p>\n<p><code><\/p>\n<pre>\nlet kullaniciAdi = \"Fatih\";\n\nif (kullaniciAdi) {\n  console.log(\"Kullan\u0131c\u0131 ad\u0131 girildi.\");\n} else {\n  console.log(\"Kullan\u0131c\u0131 ad\u0131 girilmedi.\");\n}\n<\/pre>\n<p><\/code><\/p>\n<p>Bu \u00f6rnekte, <code>kullaniciAdi<\/code> de\u011fi\u015fkeni bir de\u011fer i\u00e7eriyorsa (truthy ise), ilk <code>console.log<\/code> \u00e7al\u0131\u015facakt\u0131r; aksi takdirde, ikinci <code>console.log<\/code> \u00e7al\u0131\u015facakt\u0131r.  Bu,  <code>kullaniciAdi === \"\"<\/code> veya <code>kullaniciAdi === null<\/code> gibi ek kontrollerden ka\u00e7\u0131nmam\u0131z\u0131 sa\u011flar.  Sonu\u00e7 olarak daha temiz bir kod elde ederiz.<\/p>\n<h2>\u00d6nemli Notlar<\/h2>\n<p>Truthy ve falsy kavramlar\u0131,  JavaScript&#8217;in temel \u00e7al\u0131\u015fma mekanizmas\u0131n\u0131n bir par\u00e7as\u0131d\u0131r.  Bu kavramlar\u0131 anlamak,  kod yazarken olas\u0131 hatalardan ka\u00e7\u0131nman\u0131za ve kodunuzu daha temiz ve verimli hale getirmenize yard\u0131mc\u0131 olur.  Daha fazla bilgi i\u00e7in <a href=\"https:\/\/fatihsoysal.com\">kendi web sitemi<\/a> ve  <a href=\"https:\/\/dev.to\/abuhorairatarif\/truthy-and-falsy-in-js-what-every-developer-should-know-3c59\">bu makaleyi<\/a> inceleyebilirsiniz.<\/p>\n<p>#Etiketler: JavaScript, Truthy, Falsy, Ko\u015fullu \u0130fade, Programlama, Web Geli\u015ftirme, Boolean, Fatih Soysal<br \/>\n<\/body><br \/>\n<\/html><\/p>\n","protected":false},"excerpt":{"rendered":"JavaScript&#8217;te Truthy ve Falsy De\u011ferler: Her Geli\u015ftiricinin Bilmesi Gerekenler JavaScript&#8217;te, ko\u015fullu ifadelerde (if, while vb.) kullan\u0131lan de\u011ferler, &#8220;truthy&#8221;&hellip;","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"csco_page_header_type":"","csco_page_load_nextpost":"","csco_page_subscribe_form":"","csco_page_contact_form":"","footnotes":""},"categories":[1],"tags":[],"class_list":{"0":"post-20656","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-genel","7":"cs-entry","8":"cs-video-wrap"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.5 (Yoast SEO v25.3.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>JavaScript&#039;te Truthy ve Falsy De\u011ferler: Her Geli\u015ftiricinin Bilmesi Gerekenler<\/title>\n<meta name=\"description\" content=\"JavaScript&#039;te, ko\u015fullu ifadelerde (if, while vb.) kullan\u0131lan de\u011ferler, &quot;truthy&quot; veya &quot;falsy&quot; olarak s\u0131n\u0131fland\u0131r\u0131l\u0131r. Bu, de\u011ferlerin do\u011fruluk de\u011ferlerini (true veya false) direkt olarak temsil etmesinden ziyade, ko\u015fullu ifadeler i\u00e7erisinde nas\u0131l de\u011ferlendirildiklerini belirler. Ba\u015fka bir deyi\u015fle, bir de\u011fer true veya false olarak de\u011ferlendirilmez; bunun yerine, bu de\u011ferler Boolean() fonksiyonu ile true veya false de\u011ferlerine d\u00f6n\u00fc\u015ft\u00fcr\u00fcl\u00fcr.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fatihsoysal.com\/blog\/javascriptte-truthy-ve-falsy-degerler-her-gelistiricinin-bilmesi-gerekenler\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"JavaScript&#039;te Truthy ve Falsy De\u011ferler: Her Geli\u015ftiricinin Bilmesi Gerekenler\" \/>\n<meta property=\"og:description\" content=\"JavaScript&#039;te, ko\u015fullu ifadelerde (if, while vb.) kullan\u0131lan de\u011ferler, &quot;truthy&quot; veya &quot;falsy&quot; olarak s\u0131n\u0131fland\u0131r\u0131l\u0131r. Bu, de\u011ferlerin do\u011fruluk de\u011ferlerini (true veya false) direkt olarak temsil etmesinden ziyade, ko\u015fullu ifadeler i\u00e7erisinde nas\u0131l de\u011ferlendirildiklerini belirler. Ba\u015fka bir deyi\u015fle, bir de\u011fer true veya false olarak de\u011ferlendirilmez; bunun yerine, bu de\u011ferler Boolean() fonksiyonu ile true veya false de\u011ferlerine d\u00f6n\u00fc\u015ft\u00fcr\u00fcl\u00fcr.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fatihsoysal.com\/blog\/javascriptte-truthy-ve-falsy-degerler-her-gelistiricinin-bilmesi-gerekenler\/\" \/>\n<meta property=\"og:site_name\" content=\"Kodlar\u0131n Gizemli D\u00fcnyas\u0131\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-10T16:15:13+00:00\" \/>\n<meta name=\"author\" content=\"Fatih Soysal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Yazan:\" \/>\n\t<meta name=\"twitter:data1\" content=\"Fatih Soysal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tahmini okuma s\u00fcresi\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 dakika\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/javascriptte-truthy-ve-falsy-degerler-her-gelistiricinin-bilmesi-gerekenler\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/javascriptte-truthy-ve-falsy-degerler-her-gelistiricinin-bilmesi-gerekenler\/\"},\"author\":{\"name\":\"Fatih Soysal\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"headline\":\"JavaScript&#8217;te Truthy ve Falsy De\u011ferler: Her Geli\u015ftiricinin Bilmesi Gerekenler\",\"datePublished\":\"2025-05-10T16:15:13+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/javascriptte-truthy-ve-falsy-degerler-her-gelistiricinin-bilmesi-gerekenler\/\"},\"wordCount\":323,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/javascriptte-truthy-ve-falsy-degerler-her-gelistiricinin-bilmesi-gerekenler\/#respond\"]}],\"copyrightYear\":\"2025\",\"copyrightHolder\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/javascriptte-truthy-ve-falsy-degerler-her-gelistiricinin-bilmesi-gerekenler\/\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/javascriptte-truthy-ve-falsy-degerler-her-gelistiricinin-bilmesi-gerekenler\/\",\"name\":\"JavaScript'te Truthy ve Falsy De\u011ferler: Her Geli\u015ftiricinin Bilmesi Gerekenler\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#website\"},\"datePublished\":\"2025-05-10T16:15:13+00:00\",\"description\":\"JavaScript'te, ko\u015fullu ifadelerde (if, while vb.) kullan\u0131lan de\u011ferler, \\\"truthy\\\" veya \\\"falsy\\\" olarak s\u0131n\u0131fland\u0131r\u0131l\u0131r. Bu, de\u011ferlerin do\u011fruluk de\u011ferlerini (true veya false) direkt olarak temsil etmesinden ziyade, ko\u015fullu ifadeler i\u00e7erisinde nas\u0131l de\u011ferlendirildiklerini belirler. Ba\u015fka bir deyi\u015fle, bir de\u011fer true veya false olarak de\u011ferlendirilmez; bunun yerine, bu de\u011ferler Boolean() fonksiyonu ile true veya false de\u011ferlerine d\u00f6n\u00fc\u015ft\u00fcr\u00fcl\u00fcr.\",\"breadcrumb\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/javascriptte-truthy-ve-falsy-degerler-her-gelistiricinin-bilmesi-gerekenler\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/javascriptte-truthy-ve-falsy-degerler-her-gelistiricinin-bilmesi-gerekenler\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/javascriptte-truthy-ve-falsy-degerler-her-gelistiricinin-bilmesi-gerekenler\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Anasayfa\",\"item\":\"https:\/\/fatihsoysal.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JavaScript&#8217;te Truthy ve Falsy De\u011ferler: Her Geli\u015ftiricinin Bilmesi Gerekenler\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#website\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/\",\"name\":\"Fatihsoysal.com\",\"description\":\"Blog - Yaz\u0131l\u0131m D\u00fcnyas\u0131 Tecr\u00fcbelerim\",\"publisher\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fatihsoysal.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"tr\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\",\"name\":\"Fatih Soysal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"tr\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png\",\"contentUrl\":\"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png\",\"width\":512,\"height\":512,\"caption\":\"Fatih Soysal\"},\"logo\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/\"},\"description\":\"Kullan\u0131m ve kodlama m\u00fckemmeliyetini odak alan uygulamalar olu\u015fturma deneyimine sahip, profesyonel olarak 15+ y\u0131l \u00fczeri deneyime sahip bir yaz\u0131l\u0131m m\u00fchendisi.\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/author\/fatihsoysal\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"JavaScript'te Truthy ve Falsy De\u011ferler: Her Geli\u015ftiricinin Bilmesi Gerekenler","description":"JavaScript'te, ko\u015fullu ifadelerde (if, while vb.) kullan\u0131lan de\u011ferler, \"truthy\" veya \"falsy\" olarak s\u0131n\u0131fland\u0131r\u0131l\u0131r. Bu, de\u011ferlerin do\u011fruluk de\u011ferlerini (true veya false) direkt olarak temsil etmesinden ziyade, ko\u015fullu ifadeler i\u00e7erisinde nas\u0131l de\u011ferlendirildiklerini belirler. Ba\u015fka bir deyi\u015fle, bir de\u011fer true veya false olarak de\u011ferlendirilmez; bunun yerine, bu de\u011ferler Boolean() fonksiyonu ile true veya false de\u011ferlerine d\u00f6n\u00fc\u015ft\u00fcr\u00fcl\u00fcr.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/fatihsoysal.com\/blog\/javascriptte-truthy-ve-falsy-degerler-her-gelistiricinin-bilmesi-gerekenler\/","og_locale":"tr_TR","og_type":"article","og_title":"JavaScript'te Truthy ve Falsy De\u011ferler: Her Geli\u015ftiricinin Bilmesi Gerekenler","og_description":"JavaScript'te, ko\u015fullu ifadelerde (if, while vb.) kullan\u0131lan de\u011ferler, \"truthy\" veya \"falsy\" olarak s\u0131n\u0131fland\u0131r\u0131l\u0131r. Bu, de\u011ferlerin do\u011fruluk de\u011ferlerini (true veya false) direkt olarak temsil etmesinden ziyade, ko\u015fullu ifadeler i\u00e7erisinde nas\u0131l de\u011ferlendirildiklerini belirler. Ba\u015fka bir deyi\u015fle, bir de\u011fer true veya false olarak de\u011ferlendirilmez; bunun yerine, bu de\u011ferler Boolean() fonksiyonu ile true veya false de\u011ferlerine d\u00f6n\u00fc\u015ft\u00fcr\u00fcl\u00fcr.","og_url":"https:\/\/fatihsoysal.com\/blog\/javascriptte-truthy-ve-falsy-degerler-her-gelistiricinin-bilmesi-gerekenler\/","og_site_name":"Kodlar\u0131n Gizemli D\u00fcnyas\u0131","article_published_time":"2025-05-10T16:15:13+00:00","author":"Fatih Soysal","twitter_card":"summary_large_image","twitter_misc":{"Yazan:":"Fatih Soysal","Tahmini okuma s\u00fcresi":"2 dakika"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fatihsoysal.com\/blog\/javascriptte-truthy-ve-falsy-degerler-her-gelistiricinin-bilmesi-gerekenler\/#article","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/javascriptte-truthy-ve-falsy-degerler-her-gelistiricinin-bilmesi-gerekenler\/"},"author":{"name":"Fatih Soysal","@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"headline":"JavaScript&#8217;te Truthy ve Falsy De\u011ferler: Her Geli\u015ftiricinin Bilmesi Gerekenler","datePublished":"2025-05-10T16:15:13+00:00","mainEntityOfPage":{"@id":"https:\/\/fatihsoysal.com\/blog\/javascriptte-truthy-ve-falsy-degerler-her-gelistiricinin-bilmesi-gerekenler\/"},"wordCount":323,"commentCount":0,"publisher":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"inLanguage":"tr","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fatihsoysal.com\/blog\/javascriptte-truthy-ve-falsy-degerler-her-gelistiricinin-bilmesi-gerekenler\/#respond"]}],"copyrightYear":"2025","copyrightHolder":{"@id":"https:\/\/fatihsoysal.com\/blog\/#organization"}},{"@type":"WebPage","@id":"https:\/\/fatihsoysal.com\/blog\/javascriptte-truthy-ve-falsy-degerler-her-gelistiricinin-bilmesi-gerekenler\/","url":"https:\/\/fatihsoysal.com\/blog\/javascriptte-truthy-ve-falsy-degerler-her-gelistiricinin-bilmesi-gerekenler\/","name":"JavaScript'te Truthy ve Falsy De\u011ferler: Her Geli\u015ftiricinin Bilmesi Gerekenler","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/#website"},"datePublished":"2025-05-10T16:15:13+00:00","description":"JavaScript'te, ko\u015fullu ifadelerde (if, while vb.) kullan\u0131lan de\u011ferler, \"truthy\" veya \"falsy\" olarak s\u0131n\u0131fland\u0131r\u0131l\u0131r. Bu, de\u011ferlerin do\u011fruluk de\u011ferlerini (true veya false) direkt olarak temsil etmesinden ziyade, ko\u015fullu ifadeler i\u00e7erisinde nas\u0131l de\u011ferlendirildiklerini belirler. Ba\u015fka bir deyi\u015fle, bir de\u011fer true veya false olarak de\u011ferlendirilmez; bunun yerine, bu de\u011ferler Boolean() fonksiyonu ile true veya false de\u011ferlerine d\u00f6n\u00fc\u015ft\u00fcr\u00fcl\u00fcr.","breadcrumb":{"@id":"https:\/\/fatihsoysal.com\/blog\/javascriptte-truthy-ve-falsy-degerler-her-gelistiricinin-bilmesi-gerekenler\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fatihsoysal.com\/blog\/javascriptte-truthy-ve-falsy-degerler-her-gelistiricinin-bilmesi-gerekenler\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/fatihsoysal.com\/blog\/javascriptte-truthy-ve-falsy-degerler-her-gelistiricinin-bilmesi-gerekenler\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Anasayfa","item":"https:\/\/fatihsoysal.com\/blog\/"},{"@type":"ListItem","position":2,"name":"JavaScript&#8217;te Truthy ve Falsy De\u011ferler: Her Geli\u015ftiricinin Bilmesi Gerekenler"}]},{"@type":"WebSite","@id":"https:\/\/fatihsoysal.com\/blog\/#website","url":"https:\/\/fatihsoysal.com\/blog\/","name":"Fatihsoysal.com","description":"Blog - Yaz\u0131l\u0131m D\u00fcnyas\u0131 Tecr\u00fcbelerim","publisher":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fatihsoysal.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"tr"},{"@type":["Person","Organization"],"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1","name":"Fatih Soysal","image":{"@type":"ImageObject","inLanguage":"tr","@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png","contentUrl":"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png","width":512,"height":512,"caption":"Fatih Soysal"},"logo":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/"},"description":"Kullan\u0131m ve kodlama m\u00fckemmeliyetini odak alan uygulamalar olu\u015fturma deneyimine sahip, profesyonel olarak 15+ y\u0131l \u00fczeri deneyime sahip bir yaz\u0131l\u0131m m\u00fchendisi.","url":"https:\/\/fatihsoysal.com\/blog\/author\/fatihsoysal\/"}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/20656","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/comments?post=20656"}],"version-history":[{"count":0,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/20656\/revisions"}],"wp:attachment":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/media?parent=20656"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/categories?post=20656"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/tags?post=20656"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}