{"id":238,"date":"2024-09-30T21:47:18","date_gmt":"2024-09-30T20:47:18","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=238"},"modified":"2025-10-02T10:08:25","modified_gmt":"2025-10-02T09:08:25","slug":"mwnci-comments","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-comments\/","title":{"rendered":"Mwnci Comments"},"content":{"rendered":"<h2>Mwnci Comments<\/h2>\n<ul>\n<li>Comments can be used to describe code<\/li>\n<li>Comments can be used to make code more readable<\/li>\n<li>Comments can be used to prevent code execution when testing<\/li>\n<\/ul>\n<h2>Creating Comments<\/h2>\n<p>Comments start with\u00a0 \/\/, and will be ignored\u00a0 by the interpreter<\/p>\n<pre>\/\/ print message\r\nprintln(\"Hello World\")\r\n<\/pre>\n<p>Comments can be placed at the end of a line, and will also be ignored by the interpreter.<\/p>\n<pre>x=y+1  \/\/ This is also a comment\r\n<\/pre>\n<p>Comments can also prevent code from being executed, say for testing<\/p>\n<pre>\r\n\/\/ println(\"Hello Mum\")\r\nprintln(\"Hello World\")\r\n<\/pre>\n<h2>Multi-line Comments<\/h2>\n<p>To insert multiline comments, you can either start each line with \/\/, or used the C-type \/*&#8230;*\/ to encapsulate several lines.<\/p>\n<p>\/\/ These lines<br \/>\n\/\/ are comments<\/p>\n<p>\/*<br \/>\nThis is<br \/>\nalso comments<br \/>\nover several<br \/>\nlines<br \/>\n*\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mwnci Comments Comments can be used to describe code Comments can be used to make code more readable Comments can be used to prevent code execution when testing Creating Comments Comments start with\u00a0 \/\/, and will be ignored\u00a0 by the interpreter \/\/ print message println(&#8220;Hello World&#8221;) Comments can be placed at the end of a &hellip; <a href=\"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-comments\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Mwnci Comments&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-238","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=238"}],"version-history":[{"count":4,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/238\/revisions"}],"predecessor-version":[{"id":1235,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/238\/revisions\/1235"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}