{"id":179,"date":"2013-06-19T16:26:55","date_gmt":"2013-06-19T23:26:55","guid":{"rendered":"http:\/\/courses.haigarmen.com\/isma309\/?p=179"},"modified":"2013-06-19T16:35:59","modified_gmt":"2013-06-19T23:35:59","slug":"write-and-writeln","status":"publish","type":"post","link":"https:\/\/courses.haigarmen.com\/isma309\/write-and-writeln\/","title":{"rendered":"Write and Writeln"},"content":{"rendered":"<p>In order to output text in JavaScript you must use write() or writeln(). Here\u2019s an example:<\/p>\n<pre lang=\"HTML\">\r\n\t<HTML>\r\n\t\t<HEAD>\r\n\t\t\t<TITLE> Welcome to my site<\/TITLE>\r\n\t\t<\/HEAD>\r\n\t\t<BODY>\r\n\t\t\t<SCRIPT LANGUAGE=\"JAVASCRIPT\">\r\n\t\t\t<!--\r\n\t\t\tdocument.write(\"Welcome to my site!\");\r\n\t\t<\/SCRIPT>\r\n\t\t<\/BODY>\r\n\t<\/HTML>\r\n\t<\/pre>\n<p>Note: the document object write is in lowercase as JavaScript is case sensitive. The difference between write and writeln is: write just outputs a text, writeln outputs the text and a line break.<\/p>\n<p>Next up: <a href=\"http:\/\/courses.haigarmen.com\/isma309\/dom\/\" title=\"Document Object Model\">The DOM<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In order to output text in JavaScript you must use write() or writeln(). Here\u2019s an example: Welcome to my site Note: the document object write is in lowercase as JavaScript is case sensitive. The difference between write and writeln is: write just outputs a text, writeln outputs the text and a line break. Next up: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,7],"tags":[],"class_list":["post-179","post","type-post","status-publish","format-standard","hentry","category-exercises","category-javascript"],"_links":{"self":[{"href":"https:\/\/courses.haigarmen.com\/isma309\/wp-json\/wp\/v2\/posts\/179","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/courses.haigarmen.com\/isma309\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/courses.haigarmen.com\/isma309\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/courses.haigarmen.com\/isma309\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/courses.haigarmen.com\/isma309\/wp-json\/wp\/v2\/comments?post=179"}],"version-history":[{"count":4,"href":"https:\/\/courses.haigarmen.com\/isma309\/wp-json\/wp\/v2\/posts\/179\/revisions"}],"predecessor-version":[{"id":181,"href":"https:\/\/courses.haigarmen.com\/isma309\/wp-json\/wp\/v2\/posts\/179\/revisions\/181"}],"wp:attachment":[{"href":"https:\/\/courses.haigarmen.com\/isma309\/wp-json\/wp\/v2\/media?parent=179"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/courses.haigarmen.com\/isma309\/wp-json\/wp\/v2\/categories?post=179"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/courses.haigarmen.com\/isma309\/wp-json\/wp\/v2\/tags?post=179"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}