{"id":9291,"date":"2011-09-02T08:28:00","date_gmt":"2011-09-02T08:28:00","guid":{"rendered":"https:\/\/www.htmlgoodies.com\/uncategorized\/tips-for-effective-javascript-programming\/"},"modified":"2011-09-02T08:28:00","modified_gmt":"2011-09-02T08:28:00","slug":"tips-for-effective-javascript-programming","status":"publish","type":"post","link":"https:\/\/www.htmlgoodies.com\/news\/tips-for-effective-javascript-programming\/","title":{"rendered":"Tips for Effective JavaScript Programming"},"content":{"rendered":"

While learning development and programming skills, the use of good practices should be encouraged. JavaScript detractors often say that JavaScript is a rather poor choice of a programming language. By separating your site’s structure using HTML, its behavior through JavaScript, and its presentation through CSS, the JavaScript programming itself can be productive and enjoyable. <\/p>\n

A typical web page contains the HTML code that creates the structure of the page, the CSS that controls its appearance, and the JavaScript that makes it function properly. It is often much easier to maintain and debug such a page if the JavaScript is isolated from the HTML, which is also separate from the CSS.<\/p>\n

Developers should avoid practices such as the use of embedded styles within HTML elements, as it is an easy habit to fall into when your pages’ HTML, CSS and JavaScript code all reside on the same document. <\/p>\n

Read the original article here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"

While learning development and programming skills, the use of good practices should be encouraged. JavaScript detractors often say that JavaScript is a rather poor choice of a programming language. By separating your site’s structure using HTML, its behavior through JavaScript, and its presentation through CSS, the JavaScript programming itself can be productive and enjoyable. A […]<\/p>\n","protected":false},"author":51,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[30652],"tags":[4810,3448,3385,30800,4155],"b2b_audience":[29],"b2b_industry":[52],"b2b_product":[68,80],"acf":[],"yoast_head":"\nTips for Effective JavaScript Programming | HTML Goodies<\/title>\n<meta name=\"description\" content=\"While learning development and programming skills, the use of good practices should be encouraged. JavaScript detractors often say that JavaScript is a\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.htmlgoodies.com\/news\/tips-for-effective-javascript-programming\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tips for Effective JavaScript Programming | HTML Goodies\" \/>\n<meta property=\"og:description\" content=\"While learning development and programming skills, the use of good practices should be encouraged. JavaScript detractors often say that JavaScript is a\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.htmlgoodies.com\/news\/tips-for-effective-javascript-programming\/\" \/>\n<meta property=\"og:site_name\" content=\"HTML Goodies\" \/>\n<meta property=\"article:published_time\" content=\"2011-09-02T08:28:00+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@htmlgoodies\" \/>\n<meta name=\"twitter:site\" content=\"@htmlgoodies\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"HTMLGoodies Staff\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.htmlgoodies.com\/#organization\",\"name\":\"HTML Goodies\",\"url\":\"https:\/\/www.htmlgoodies.com\/\",\"sameAs\":[\"https:\/\/twitter.com\/htmlgoodies\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.htmlgoodies.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/03\/HTMLg_weblogo_MobileLogo.png\",\"contentUrl\":\"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/03\/HTMLg_weblogo_MobileLogo.png\",\"width\":584,\"height\":136,\"caption\":\"HTML Goodies\"},\"image\":{\"@id\":\"https:\/\/www.htmlgoodies.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.htmlgoodies.com\/#website\",\"url\":\"https:\/\/www.htmlgoodies.com\/\",\"name\":\"HTML Goodies\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.htmlgoodies.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.htmlgoodies.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.htmlgoodies.com\/news\/tips-for-effective-javascript-programming\/#webpage\",\"url\":\"https:\/\/www.htmlgoodies.com\/news\/tips-for-effective-javascript-programming\/\",\"name\":\"Tips for Effective JavaScript Programming | HTML Goodies\",\"isPartOf\":{\"@id\":\"https:\/\/www.htmlgoodies.com\/#website\"},\"datePublished\":\"2011-09-02T08:28:00+00:00\",\"dateModified\":\"2011-09-02T08:28:00+00:00\",\"description\":\"While learning development and programming skills, the use of good practices should be encouraged. JavaScript detractors often say that JavaScript is a\",\"breadcrumb\":{\"@id\":\"https:\/\/www.htmlgoodies.com\/news\/tips-for-effective-javascript-programming\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.htmlgoodies.com\/news\/tips-for-effective-javascript-programming\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.htmlgoodies.com\/news\/tips-for-effective-javascript-programming\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.htmlgoodies.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tips for Effective JavaScript Programming\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/www.htmlgoodies.com\/news\/tips-for-effective-javascript-programming\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.htmlgoodies.com\/news\/tips-for-effective-javascript-programming\/#webpage\"},\"author\":{\"@id\":\"https:\/\/www.htmlgoodies.com\/#\/schema\/person\/e83f2d74b695b6ec4a97e7094a1f5dc3\"},\"headline\":\"Tips for Effective JavaScript Programming\",\"datePublished\":\"2011-09-02T08:28:00+00:00\",\"dateModified\":\"2011-09-02T08:28:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.htmlgoodies.com\/news\/tips-for-effective-javascript-programming\/#webpage\"},\"wordCount\":157,\"publisher\":{\"@id\":\"https:\/\/www.htmlgoodies.com\/#organization\"},\"keywords\":[\"CSS\",\"HTML\",\"JavaScript\",\"JavaScript Tips\",\"programming\"],\"articleSection\":[\"News\"],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.htmlgoodies.com\/#\/schema\/person\/e83f2d74b695b6ec4a97e7094a1f5dc3\",\"name\":\"HTMLGoodies Staff\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.htmlgoodies.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/12\/Website_Avatar__HTMLGood_3-copy-2-150x150.png\",\"contentUrl\":\"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/12\/Website_Avatar__HTMLGood_3-copy-2-150x150.png\",\"caption\":\"HTMLGoodies Staff\"},\"url\":\"https:\/\/www.htmlgoodies.com\/author\/htmlgoodies-staff\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Tips for Effective JavaScript Programming | HTML Goodies","description":"While learning development and programming skills, the use of good practices should be encouraged. JavaScript detractors often say that JavaScript is a","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.htmlgoodies.com\/news\/tips-for-effective-javascript-programming\/","og_locale":"en_US","og_type":"article","og_title":"Tips for Effective JavaScript Programming | HTML Goodies","og_description":"While learning development and programming skills, the use of good practices should be encouraged. JavaScript detractors often say that JavaScript is a","og_url":"https:\/\/www.htmlgoodies.com\/news\/tips-for-effective-javascript-programming\/","og_site_name":"HTML Goodies","article_published_time":"2011-09-02T08:28:00+00:00","twitter_card":"summary_large_image","twitter_creator":"@htmlgoodies","twitter_site":"@htmlgoodies","twitter_misc":{"Written by":"HTMLGoodies Staff","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/www.htmlgoodies.com\/#organization","name":"HTML Goodies","url":"https:\/\/www.htmlgoodies.com\/","sameAs":["https:\/\/twitter.com\/htmlgoodies"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.htmlgoodies.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/03\/HTMLg_weblogo_MobileLogo.png","contentUrl":"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/03\/HTMLg_weblogo_MobileLogo.png","width":584,"height":136,"caption":"HTML Goodies"},"image":{"@id":"https:\/\/www.htmlgoodies.com\/#\/schema\/logo\/image\/"}},{"@type":"WebSite","@id":"https:\/\/www.htmlgoodies.com\/#website","url":"https:\/\/www.htmlgoodies.com\/","name":"HTML Goodies","description":"","publisher":{"@id":"https:\/\/www.htmlgoodies.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.htmlgoodies.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.htmlgoodies.com\/news\/tips-for-effective-javascript-programming\/#webpage","url":"https:\/\/www.htmlgoodies.com\/news\/tips-for-effective-javascript-programming\/","name":"Tips for Effective JavaScript Programming | HTML Goodies","isPartOf":{"@id":"https:\/\/www.htmlgoodies.com\/#website"},"datePublished":"2011-09-02T08:28:00+00:00","dateModified":"2011-09-02T08:28:00+00:00","description":"While learning development and programming skills, the use of good practices should be encouraged. JavaScript detractors often say that JavaScript is a","breadcrumb":{"@id":"https:\/\/www.htmlgoodies.com\/news\/tips-for-effective-javascript-programming\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.htmlgoodies.com\/news\/tips-for-effective-javascript-programming\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.htmlgoodies.com\/news\/tips-for-effective-javascript-programming\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.htmlgoodies.com\/"},{"@type":"ListItem","position":2,"name":"Tips for Effective JavaScript Programming"}]},{"@type":"Article","@id":"https:\/\/www.htmlgoodies.com\/news\/tips-for-effective-javascript-programming\/#article","isPartOf":{"@id":"https:\/\/www.htmlgoodies.com\/news\/tips-for-effective-javascript-programming\/#webpage"},"author":{"@id":"https:\/\/www.htmlgoodies.com\/#\/schema\/person\/e83f2d74b695b6ec4a97e7094a1f5dc3"},"headline":"Tips for Effective JavaScript Programming","datePublished":"2011-09-02T08:28:00+00:00","dateModified":"2011-09-02T08:28:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.htmlgoodies.com\/news\/tips-for-effective-javascript-programming\/#webpage"},"wordCount":157,"publisher":{"@id":"https:\/\/www.htmlgoodies.com\/#organization"},"keywords":["CSS","HTML","JavaScript","JavaScript Tips","programming"],"articleSection":["News"],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.htmlgoodies.com\/#\/schema\/person\/e83f2d74b695b6ec4a97e7094a1f5dc3","name":"HTMLGoodies Staff","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.htmlgoodies.com\/#\/schema\/person\/image\/","url":"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/12\/Website_Avatar__HTMLGood_3-copy-2-150x150.png","contentUrl":"https:\/\/www.htmlgoodies.com\/wp-content\/uploads\/2021\/12\/Website_Avatar__HTMLGood_3-copy-2-150x150.png","caption":"HTMLGoodies Staff"},"url":"https:\/\/www.htmlgoodies.com\/author\/htmlgoodies-staff\/"}]}},"_links":{"self":[{"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/posts\/9291"}],"collection":[{"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/users\/51"}],"replies":[{"embeddable":true,"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/comments?post=9291"}],"version-history":[{"count":0,"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/posts\/9291\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/media?parent=9291"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/categories?post=9291"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/tags?post=9291"},{"taxonomy":"b2b_audience","embeddable":true,"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/b2b_audience?post=9291"},{"taxonomy":"b2b_industry","embeddable":true,"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/b2b_industry?post=9291"},{"taxonomy":"b2b_product","embeddable":true,"href":"https:\/\/www.htmlgoodies.com\/wp-json\/wp\/v2\/b2b_product?post=9291"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}