{"id":1692,"date":"2021-02-07T13:41:29","date_gmt":"2021-02-07T10:41:29","guid":{"rendered":"https:\/\/burakcaliskan.org\/blog\/?p=1692"},"modified":"2021-02-07T13:46:53","modified_gmt":"2021-02-07T10:46:53","slug":"javascript-switch-case","status":"publish","type":"post","link":"https:\/\/burakcaliskan.org\/blog\/javascript-switch-case\/","title":{"rendered":"JavaScript Switch-Case"},"content":{"rendered":"<pre class=\"wp-block-code\"><code>\n\n\n\n<p id=\"paragraf\"><\/p>\n<script>\nvar gun;\nswitch (new Date().getDay()) {\n  case 0:\n    gun = \"Pazar\";\n    break;\n  case 1:\n    gun = \"Pazartesi\";\n    break;\n  case 2:\n    gun = \"Sal\u0131\";\n    break;\n  case 3:\n    gun = \"\u00c7ar\u015famba\";\n    break;\n  case 4:\n    gun = \"Per\u015fembe\";\n    break;\n  case 5:\n    gun = \"Cuma\";\n    break;\n  case  6:\n    gun = \"Cumartesi\";\n}\ndocument.getElementById(\"paragraf\").innerHTML = \"Bug\u00fcn \" + gun;\n<\/script>\n\n\n\n<\/code><\/pre>\n<pre class=\"wp-block-code\"><code>&lt;!DOCTYPE html>\n&lt;html>\n&lt;body>\n&lt;p id=\"paragraf\">&lt;\/p>\n&lt;script>\nvar gun;\nswitch (new Date().getDay()) {\n  case 0:\n    gun = \"Pazar\";\n    break;\n  case 1:\n    gun = \"Pazartesi\";\n    break;\n  case 2:\n    gun = \"Sal\u0131\";\n    break;\n  case 3:\n    gun = \"\u00c7ar\u015famba\";\n    break;\n  case 4:\n    gun = \"Per\u015fembe\";\n    break;\n  case 5:\n    gun = \"Cuma\";\n    break;\n  case  6:\n    gun = \"Cumartesi\";\n}\ndocument.getElementById(\"paragraf\").innerHTML = \"Bug\u00fcn \" + gun;\n&lt;\/script>\n&lt;\/body>\n&lt;\/html>\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":135,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[63],"tags":[1206,56,1205,1207],"_links":{"self":[{"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/posts\/1692"}],"collection":[{"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/comments?post=1692"}],"version-history":[{"count":3,"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/posts\/1692\/revisions"}],"predecessor-version":[{"id":1697,"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/posts\/1692\/revisions\/1697"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/media\/135"}],"wp:attachment":[{"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/media?parent=1692"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/categories?post=1692"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/burakcaliskan.org\/blog\/wp-json\/wp\/v2\/tags?post=1692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}