{"id":989,"date":"2014-11-14T18:28:33","date_gmt":"2014-11-14T18:28:33","guid":{"rendered":"http:\/\/jo-online.vsb.bc.ca\/blogs\/jo\/spence\/?p=989"},"modified":"2014-11-14T18:28:33","modified_gmt":"2014-11-14T18:28:33","slug":"javascript-evaluation","status":"publish","type":"post","link":"https:\/\/blogs.vsb.bc.ca\/jspence\/2014\/11\/14\/javascript-evaluation\/","title":{"rendered":"Javascript Evaluation"},"content":{"rendered":"<p>Regardless of the level you came to the class with, you should be able to do a few things.<\/p>\n<p>Start on task 1 and continue until your brain explodes. Each task builds on the previous.<\/p>\n<p>Open computer, not open friends.<\/p>\n<p>\/\/Comment your code with name and date<\/p>\n<p><strong><strong>\u00a0<\/strong><\/strong><\/p>\n<p>Task 1<\/p>\n<p>Write the code to draw a circle \u00a0in the center of the screen. Radius 50.<\/p>\n<p><strong><strong>\u00a0<\/strong><\/strong><\/p>\n<p>Task 2<\/p>\n<p>Write the code to make the outline of the circle fat and a colour.<\/p>\n<p><strong><strong>\u00a0<\/strong><\/strong><\/p>\n<p>Task 3<\/p>\n<p>Write the code to make a square with a different coloured skinny outline around the previous circle.<\/p>\n<p><strong><strong>\u00a0<\/strong><\/strong><\/p>\n<p>Task 4<\/p>\n<p>Write the code to make a row with 8 of the previous diagrams. Use loops.<\/p>\n<p><strong><strong>\u00a0<\/strong><\/strong><\/p>\n<p>Task 5<\/p>\n<p>Convert the code into a function called rowOfShapes(). Write the code to call the function, use loops to fill the entire screen with your shapes.<\/p>\n<p><strong><strong>\u00a0<\/strong><\/strong><\/p>\n<p>Task 6<\/p>\n<p>Convert the code to only begin when a key is pressed.<\/p>\n<p><strong><strong>\u00a0<\/strong><\/strong><\/p>\n<p>Task 7<\/p>\n<p>Convert the code to draw one row at a time when a key is pressed.<\/p>\n<p><strong><strong>\u00a0<\/strong><\/strong><\/p>\n<p>Task 8<\/p>\n<p>Convert the code to draw single diagrams (recall, the diagram is the circle-square combo) instead of the entire row. Any order is fine. Each press fills in the screen until the whole screen is covered.<\/p>\n<p><strong><strong>\u00a0<\/strong><\/strong><\/p>\n<p>Done? :: Copy your last working code and email to jspence@johnoliver.ca<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Regardless of the level you came to the class with, you should be able to do a few things. Start on task 1 and continue until your brain explodes. Each task builds on the previous. Open computer, not open friends.&hellip;<\/p>\n<p class=\"more-link-p\"><a class=\"more-link\" href=\"https:\/\/blogs.vsb.bc.ca\/jspence\/2014\/11\/14\/javascript-evaluation\/\">Read more &rarr;<\/a><\/p>\n","protected":false},"author":194,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,6],"tags":[],"class_list":["post-989","post","type-post","status-publish","format-standard","hentry","category-ict","category-ids11"],"_links":{"self":[{"href":"https:\/\/blogs.vsb.bc.ca\/jspence\/wp-json\/wp\/v2\/posts\/989","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.vsb.bc.ca\/jspence\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.vsb.bc.ca\/jspence\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.vsb.bc.ca\/jspence\/wp-json\/wp\/v2\/users\/194"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.vsb.bc.ca\/jspence\/wp-json\/wp\/v2\/comments?post=989"}],"version-history":[{"count":0,"href":"https:\/\/blogs.vsb.bc.ca\/jspence\/wp-json\/wp\/v2\/posts\/989\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.vsb.bc.ca\/jspence\/wp-json\/wp\/v2\/media?parent=989"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.vsb.bc.ca\/jspence\/wp-json\/wp\/v2\/categories?post=989"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.vsb.bc.ca\/jspence\/wp-json\/wp\/v2\/tags?post=989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}