{"id":42283,"date":"2021-09-22T19:09:51","date_gmt":"2021-09-22T19:09:51","guid":{"rendered":"https:\/\/www.oracletutoring.ca\/blog\/?p=42283"},"modified":"2021-09-22T19:09:52","modified_gmt":"2021-09-22T19:09:52","slug":"programming-newline-in-rhs-expression-python-vs-javascript","status":"publish","type":"post","link":"https:\/\/www.oracletutoring.ca\/blog\/programming-newline-in-rhs-expression-python-vs-javascript\/","title":{"rendered":"Programming: newline in rhs expression: Python vs JavaScript"},"content":{"rendered":"\n<h2>Self-tutoring about programming: the tutor mentions a difference between Python and JavaScript he&#8217;s noticed.<\/h2>\n<p>\nWith Python, if you want to continue to the next line (perhaps for easier reading), it seems a backslash, then Return, will work:<\/p>\n\n<p style=\"font-family:monospace\">the_var= (3 + 4 \\<br\/>+5) #Python<\/p>\n<p>JavaScript seems to allow it with just Return:<\/p>\n<p style=\"font-family:monospace\">the_var = (3 + 4 <br\/> +5) \/\/JavaScript<\/p>\n<\/p>\nJack of <a href=\"https:\/\/www.oracletutoring.ca\">Oracle Tutoring by Jack and Diane,<\/a> Campbell River, BC.\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Self-tutoring about programming: the tutor mentions a difference between Python and JavaScript he&#8217;s noticed. With Python, if you want to continue to the next line (perhaps for easier reading), it seems a backslash, then Return, will work: the_var= (3 + &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.oracletutoring.ca\/blog\/programming-newline-in-rhs-expression-python-vs-javascript\/\"> <span class=\"screen-reader-text\">Programming: newline in rhs expression: Python vs JavaScript<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2780],"tags":[],"class_list":["post-42283","post","type-post","status-publish","format-standard","hentry","category-programming"],"_links":{"self":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/42283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/comments?post=42283"}],"version-history":[{"count":1,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/42283\/revisions"}],"predecessor-version":[{"id":42284,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/42283\/revisions\/42284"}],"wp:attachment":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/media?parent=42283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/categories?post=42283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/tags?post=42283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}