{"id":168,"date":"2020-08-25T12:38:51","date_gmt":"2020-08-25T12:38:51","guid":{"rendered":"https:\/\/simplytester.com\/?p=168"},"modified":"2020-08-25T12:38:53","modified_gmt":"2020-08-25T12:38:53","slug":"coding-bootcamp-week-7","status":"publish","type":"post","link":"https:\/\/simplytester.com\/?p=168","title":{"rendered":"Coding Bootcamp Week 7"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">More Javascript!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Progressing through the course, we are moving through more  JavaScript concepts.<\/strong><br><br>Numbers, Strings and Operators (the below is from MDN)<br><br><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Integers<\/strong> are whole numbers, e.g. 10, 400, or -5. <br><strong>Floating point numbers<\/strong> (floats) have decimal points and decimal places, for example 12.5, and 56.7786543. <br><strong>Doubles<\/strong> are a specific type of floating point number that have greater precision than standard floating point numbers (meaning that they are accurate to a greater number of decimal places).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Arithmetic operators (+,-,*,\/ etc)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"> <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To start with, enter the following lines:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>let string = 'The revolution will not be televised.';\nstring;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Concatenating_strings\">Concatenating strings<\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>Concatenate is a fancy programming word that means &#8220;join together&#8221;. Joining together strings in JavaScript uses the plus (+) operator, the same one we use to add numbers together, but in this context it does something different. Let&#8217;s try an example in our console. <code>let one = 'Hello, '; let two = 'how are you?'; let joined = one + two; joined;<\/code><\/li><\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Finding_the_length_of_a_string\">Finding the length of a string<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">This is easy \u2014 you simply use the <a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/JavaScript\/Reference\/Global_Objects\/String\/length\"><code>length<\/code><\/a> property. Try entering the following lines:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>let browserType = 'mozilla';\nbrowserType.length;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Definitely starting to sink in to my head just need to practice!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"More Javascript! Progressing through the course, we are moving through more JavaScript concepts. Numbers, Strings and Operators (the below is from MDN) Integers are whole numbers, e.g. 10, 400, or -5. Floating point numbers (floats) have decimal points and decimal places, for example 12.5, and 56.7786543. Doubles are a specific&hellip;\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-168","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p9z3ZM-2I","jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/simplytester.com\/index.php?rest_route=\/wp\/v2\/posts\/168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/simplytester.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/simplytester.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/simplytester.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/simplytester.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=168"}],"version-history":[{"count":0,"href":"https:\/\/simplytester.com\/index.php?rest_route=\/wp\/v2\/posts\/168\/revisions"}],"wp:attachment":[{"href":"https:\/\/simplytester.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/simplytester.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/simplytester.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}