{"id":1017,"date":"2015-04-09T18:01:04","date_gmt":"2015-04-09T18:01:04","guid":{"rendered":"https:\/\/www.courses.tegabrain.com\/SS15\/?page_id=1017"},"modified":"2015-04-10T19:42:24","modified_gmt":"2015-04-10T19:42:24","slug":"some-things-about-javascript","status":"publish","type":"page","link":"https:\/\/www.courses.tegabrain.com\/SS15\/?page_id=1017","title":{"rendered":"JAVASCRIPT 1A &#8211; Some things about JavaScript"},"content":{"rendered":"<p>&nbsp;<\/p>\n<ul>\n<li>Variables do not have a type. Use var instead of float, int, double, long, char, String, Array, etc. You do not need to specify return types or parameter types for functions.<\/li>\n<li>A var can be anything &#8212; any of the types mentioned, but also functions.<\/li>\n<li>Arrays are constructed very simply (no need for Processing ArrayList anymore) and have many built-in features, see this <a href=\"http:\/\/p5js.org\/learn\/examples\/Arrays_Array.php\">array example<\/a> and more about JS arrays <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/JavaScript\/Reference\/Global_Objects\/Array\">here<\/a><\/li>\n<li>JavaScript uses something called prototypes to form something similar to Java class objects. See this <a href=\"http:\/\/p5js.org\/learn\/examples\/Objects_Objects.php\">objects example<\/a> and more about JS objects <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/JavaScript\/Guide\/Working_with_Objects\">here<\/a>.<\/li>\n<li>For a tutorial on transitioning from Processing to p5.js which is javascript <a href=\"https:\/\/github.com\/processing\/p5.js\/wiki\/Processing-transition\">see here.\u00a0<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Variables do not have a type. Use var instead of float, int, double, long, char, String, Array, etc. You do not need to specify return types or parameter types for functions. A var can be anything &#8212; any of the types mentioned, but also functions. Arrays are constructed very simply (no need for Processing [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=\/wp\/v2\/pages\/1017"}],"collection":[{"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1017"}],"version-history":[{"count":5,"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=\/wp\/v2\/pages\/1017\/revisions"}],"predecessor-version":[{"id":1041,"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=\/wp\/v2\/pages\/1017\/revisions\/1041"}],"wp:attachment":[{"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1017"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}