{"id":986,"date":"2022-08-23T06:52:22","date_gmt":"2022-08-23T05:52:22","guid":{"rendered":"https:\/\/codeflarelimited.com\/blog\/?p=986"},"modified":"2022-08-23T06:52:25","modified_gmt":"2022-08-23T05:52:25","slug":"build-a-news-app-with-javascript-es6","status":"publish","type":"post","link":"https:\/\/codeflarelimited.com\/blog\/build-a-news-app-with-javascript-es6\/","title":{"rendered":"Build a News App With Javascript ES6"},"content":{"rendered":"\n<p>In this tutorial, we are going to build a news app with HTML, Bootstrap and ES6 features of javascript.<\/p>\n\n\n\n<p>We will also being using a free news endpoint from <a href=\"https:\/\/techcrunch.com\" target=\"_blank\" rel=\"noreferrer noopener\">techcruch<\/a>.<\/p>\n\n\n\n<p>Let&#8217;s get started.<\/p>\n\n\n\n<p>We will be working with this endpoint: <a href=\"https:\/\/techcrunch.com\/wp-json\/wp\/v2\/posts?per_page=100&amp;context=embed\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/techcrunch.com\/wp-json\/wp\/v2\/posts?per_page=100&amp;context=embed<\/a><\/p>\n\n\n\n<p>The first thing we&#8217;ll do is to create our HTML holding tags and add our <a href=\"https:\/\/getbootstrap.com\" target=\"_blank\" rel=\"noreferrer noopener\">Bootstrap<\/a> dependency<\/p>\n\n\n\n<pre title=\"news.html\" class=\"wp-block-code\"><code lang=\"markup\" class=\"language-markup\">&lt;!DOCTYPE html>\n&lt;html lang=\"en\" dir=\"ltr\">\n  &lt;head>\n    &lt;meta charset=\"utf-8\">\n    &lt;link href=\"https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@5.2.0\/dist\/css\/bootstrap.min.css\" rel=\"stylesheet\" integrity=\"sha384-gH2yIJqKdNHPEq0n4Mqa\/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl\/vI1Bx\" crossorigin=\"anonymous\">\n    &lt;title>&lt;\/title>\n  &lt;\/head>\n  &lt;body>\n    &lt;div class=\"container\">\n      &lt;center>\n      &lt;div class=\"spinner-border\" role=\"status\" id=\"loading\">&lt;\/div>\n    &lt;\/center>\n  &lt;div class=\"row row-cols-1 row-cols-md-3 g-4\" id=\"news\">&lt;\/div>\n&lt;\/div>\n&lt;\/body><\/code><\/pre>\n\n\n\n<p>Next, we will write our Javascript code that consumes the endpoint<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">window.addEventListener('load', (event) => {\n  const api_url =\n    \"https:\/\/techcrunch.com\/wp-json\/wp\/v2\/posts?per_page=100&amp;context=embed\";\n\n\/\/ Defining async function\n  async function getapi(url) {\n\n  \/\/ Storing response\n  const response = await fetch(url);\n\n  \/\/ Storing data in form of JSON\n  var data = await response.json();\n  console.log(data);\n  if (response) {\n      hideloader();\n  }\n  show(data);\n}\n\/\/ Calling that async function\ngetapi(api_url);\n})<\/code><\/pre>\n\n\n\n<p>Let&#8217;s do some explanation here.<\/p>\n\n\n\n<p>Here we&#8217;re loading our endpoint once the webpage loads that&#8217;s why we&#8217;re using the <strong><em>load<\/em><\/strong> event listener, and we&#8217;re using <a href=\"https:\/\/codeflarelimited.com\/blog\/how-to-use-fetch-api-in-javascript\/\" target=\"_blank\" rel=\"noreferrer noopener\">Fetch API <\/a>to get our response. Now when the page loads, we also have a spinner running simultaneously as well. Then we&#8217;re saying, if we have gotten a response, we want to hide the spinner. That&#8217;s why we calling the function <em><strong>hideloader()<\/strong><\/em><\/p>\n\n\n\n<p>We&#8217;re also have a function <strong><em>show(data)<\/em><\/strong> which will be showing our response. But first we have to define it.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"javascript\" class=\"language-javascript\">  for (let item of data) {\n      \/\/ let description = item.course_description.substring(0, 100).concat('...')\n      tab += `\n      &lt;div class=\"col-12 col-md-6 mb-6 col-lg-4 d-flex\">\n      &lt;div class=\"card shadow-light-lg mb-6 mb-md-0 lift lift-lg\">\n          &lt;img src=${item.jetpack_featured_media_url} alt=\"\" class=\"card-img-top\">\n            &lt;div class=\"card-body position-relative\">\n              &lt;div class=\"position-relative text-right mt-n8 mr-n4 mb-3\">\n                &lt;span class=\"badge badge-pill badge-success\">\n                  &lt;span class=\"h6 text-uppercase\">&lt;i class=\"fa fa-check\">&lt;\/i>&lt;\/span>\n                &lt;\/span>\n              &lt;\/div>\n\n              &lt;h3 class=\"text-capitalize\" style=\"font-family:poppins\" >\n                ${item.title.rendered}\n              &lt;\/h3>\n\n              &lt;p class=\"text-muted\">\n                ${item.excerpt.rendered}\n              &lt;\/p>\n              &lt;button type=\"button\" href=\"#showModal\" id=${item.course_id} data-toggle=\"modal\" class=\"btn btn-danger font-weight-bold text-decoration-none\" onclick=\"showCourses(this.id)\">\n                Read more  &lt;i class=\"fe fe-arrow-right ml-3\">&lt;\/i>\n              &lt;\/button>\n              &lt;p>${item.date}&lt;\/p>\n\n            &lt;\/div>\n            &lt;\/div>\n          &lt;\/div>\n          `;\n  }\n  \/\/ Setting innerHTML as tab variable\n  document.getElementById(\"news\").innerHTML = tab;<\/code><\/pre>\n\n\n\n<p>Here, we are looping through our response and presenting them in our html.<\/p>\n\n\n\n<p>Here&#8217;s the <strong>FULL WORKING CODE<\/strong><\/p>\n\n\n\n<pre title=\"news.html\" class=\"wp-block-code\"><code lang=\"markup\" class=\"language-markup\">&lt;!DOCTYPE html>\n&lt;html lang=\"en\" dir=\"ltr\">\n  &lt;head>\n    &lt;meta charset=\"utf-8\">\n    &lt;link href=\"https:\/\/cdn.jsdelivr.net\/npm\/bootstrap@5.2.0\/dist\/css\/bootstrap.min.css\" rel=\"stylesheet\" integrity=\"sha384-gH2yIJqKdNHPEq0n4Mqa\/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl\/vI1Bx\" crossorigin=\"anonymous\">\n    &lt;title>&lt;\/title>\n  &lt;\/head>\n  &lt;body>\n    &lt;div class=\"container\">\n      &lt;center>\n      &lt;div class=\"spinner-border\" role=\"status\" id=\"loading\">&lt;\/div>\n    &lt;\/center>\n  &lt;div class=\"row row-cols-1 row-cols-md-3 g-4\" id=\"news\">&lt;\/div>\n&lt;\/div>\n  &lt;script>\n\nwindow.addEventListener('load', (event) => {\n  const api_url =\n    \"https:\/\/techcrunch.com\/wp-json\/wp\/v2\/posts?per_page=100&amp;context=embed\";\n\n\/\/ Defining async function\n  async function getapi(url) {\n\n  \/\/ Storing response\n  const response = await fetch(url);\n\n  \/\/ Storing data in form of JSON\n  var data = await response.json();\n  console.log(data);\n  if (response) {\n      hideloader();\n  }\n  show(data);\n}\n\/\/ Calling that async function\ngetapi(api_url);\n\n\/\/ Function to hide the loader\nfunction hideloader() {\n  document.getElementById('loading').style.display = 'none';\n}\n\/\/ Function to define innerHTML for HTML table\nfunction show(data) {\n  let tab = ``;\n\n  \/\/ Loop to access all rows\n  for (let item of data) {\n      \/\/ let description = item.course_description.substring(0, 100).concat('...')\n      tab += `\n      &lt;div class=\"col-12 col-md-6 mb-6 col-lg-4 d-flex\">\n      &lt;div class=\"card shadow-light-lg mb-6 mb-md-0 lift lift-lg\">\n          &lt;img src=${item.jetpack_featured_media_url} alt=\"\" class=\"card-img-top\">\n            &lt;div class=\"card-body position-relative\">\n              &lt;div class=\"position-relative text-right mt-n8 mr-n4 mb-3\">\n                &lt;span class=\"badge badge-pill badge-success\">\n                  &lt;span class=\"h6 text-uppercase\">&lt;i class=\"fa fa-check\">&lt;\/i>&lt;\/span>\n                &lt;\/span>\n              &lt;\/div>\n\n              &lt;h3 class=\"text-capitalize\" style=\"font-family:poppins\" >\n                ${item.title.rendered}\n              &lt;\/h3>\n\n              &lt;p class=\"text-muted\">\n                ${item.excerpt.rendered}\n              &lt;\/p>\n              &lt;button type=\"button\" href=\"#showModal\" id=${item.course_id} data-toggle=\"modal\" class=\"btn btn-danger font-weight-bold text-decoration-none\" onclick=\"showCourses(this.id)\">\n                Read more  &lt;i class=\"fe fe-arrow-right ml-3\">&lt;\/i>\n              &lt;\/button>\n              &lt;p>${item.date}&lt;\/p>\n\n            &lt;\/div>\n            &lt;\/div>\n          &lt;\/div>\n          `;\n  }\n  \/\/ Setting innerHTML as tab variable\n  document.getElementById(\"news\").innerHTML = tab;\n}\n})\n  &lt;\/script>\n  &lt;\/body>\n&lt;\/html>\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-result\">Result:<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"481\" src=\"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-at-06.30.23-1024x481.png\" alt=\"build a news app with javascript es6\" class=\"wp-image-987\" srcset=\"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-at-06.30.23-1024x481.png 1024w, https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-at-06.30.23-300x141.png 300w, https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-at-06.30.23-768x361.png 768w, https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/08\/Screenshot-2022-08-23-at-06.30.23.png 1424w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>So here&#8217;s the full result in its basic usage. If you would like to format the date to a more readable format, we&#8217;ve covered how to use moment.js <a href=\"https:\/\/codeflarelimited.com\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we are going to build a news app with HTML, Bootstrap and ES6 features of<\/p>\n","protected":false},"author":1,"featured_media":989,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[98],"tags":[],"class_list":["post-986","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-softare-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Build a News App With Javascript ES6<\/title>\n<meta name=\"description\" content=\"In this tutorial, we are going to build a news application using ES6 features of javascript and Bootstrap.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codeflarelimited.com\/blog\/build-a-news-app-with-javascript-es6\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Build a News App With Javascript ES6\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, we are going to build a news application using ES6 features of javascript and Bootstrap.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codeflarelimited.com\/blog\/build-a-news-app-with-javascript-es6\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/facebook.com\/codeflretech\" \/>\n<meta property=\"article:published_time\" content=\"2022-08-23T05:52:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-08-23T05:52:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/08\/3266738_news_jpegfc1c848e6bfc932d46ceab3c19481f7c.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"765\" \/>\n\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"codeflare\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@codeflaretech\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/build-a-news-app-with-javascript-es6\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/build-a-news-app-with-javascript-es6\\\/\"},\"author\":{\"name\":\"codeflare\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/person\\\/7e65653d49add95629f8c1053c5cd76a\"},\"headline\":\"Build a News App With Javascript ES6\",\"datePublished\":\"2022-08-23T05:52:22+00:00\",\"dateModified\":\"2022-08-23T05:52:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/build-a-news-app-with-javascript-es6\\\/\"},\"wordCount\":223,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/build-a-news-app-with-javascript-es6\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/3266738_news_jpegfc1c848e6bfc932d46ceab3c19481f7c.jpeg\",\"articleSection\":[\"softare development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/build-a-news-app-with-javascript-es6\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/build-a-news-app-with-javascript-es6\\\/\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/build-a-news-app-with-javascript-es6\\\/\",\"name\":\"Build a News App With Javascript ES6\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/build-a-news-app-with-javascript-es6\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/build-a-news-app-with-javascript-es6\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/3266738_news_jpegfc1c848e6bfc932d46ceab3c19481f7c.jpeg\",\"datePublished\":\"2022-08-23T05:52:22+00:00\",\"dateModified\":\"2022-08-23T05:52:25+00:00\",\"description\":\"In this tutorial, we are going to build a news application using ES6 features of javascript and Bootstrap.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/build-a-news-app-with-javascript-es6\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/build-a-news-app-with-javascript-es6\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/build-a-news-app-with-javascript-es6\\\/#primaryimage\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/3266738_news_jpegfc1c848e6bfc932d46ceab3c19481f7c.jpeg\",\"contentUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/08\\\/3266738_news_jpegfc1c848e6bfc932d46ceab3c19481f7c.jpeg\",\"width\":765,\"height\":350,\"caption\":\"news app with javascript\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/build-a-news-app-with-javascript-es6\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"softare development\",\"item\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/softare-development\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Build a News App With Javascript ES6\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\",\"name\":\"\",\"description\":\"Sustainable solutions\",\"publisher\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\",\"name\":\"Codeflare Limited\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/codeflare.png\",\"contentUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/codeflare.png\",\"width\":1040,\"height\":263,\"caption\":\"Codeflare Limited\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/person\\\/7e65653d49add95629f8c1053c5cd76a\",\"name\":\"codeflare\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g\",\"caption\":\"codeflare\"},\"description\":\"Latest tech news and coding tips.\",\"sameAs\":[\"https:\\\/\\\/codeflarelimited.com\\\/blog\",\"https:\\\/\\\/facebook.com\\\/codeflretech\",\"https:\\\/\\\/instagram.com\\\/codeflaretech\",\"https:\\\/\\\/x.com\\\/codeflaretech\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCuBLtiYqsajHdqw0uyt7Ofw?sub_confirmation=1\"],\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/author\\\/watcher\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Build a News App With Javascript ES6","description":"In this tutorial, we are going to build a news application using ES6 features of javascript and Bootstrap.","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:\/\/codeflarelimited.com\/blog\/build-a-news-app-with-javascript-es6\/","og_locale":"en_US","og_type":"article","og_title":"Build a News App With Javascript ES6","og_description":"In this tutorial, we are going to build a news application using ES6 features of javascript and Bootstrap.","og_url":"https:\/\/codeflarelimited.com\/blog\/build-a-news-app-with-javascript-es6\/","article_author":"https:\/\/facebook.com\/codeflretech","article_published_time":"2022-08-23T05:52:22+00:00","article_modified_time":"2022-08-23T05:52:25+00:00","og_image":[{"width":765,"height":350,"url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/08\/3266738_news_jpegfc1c848e6bfc932d46ceab3c19481f7c.jpeg","type":"image\/jpeg"}],"author":"codeflare","twitter_card":"summary_large_image","twitter_creator":"@codeflaretech","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/codeflarelimited.com\/blog\/build-a-news-app-with-javascript-es6\/#article","isPartOf":{"@id":"https:\/\/codeflarelimited.com\/blog\/build-a-news-app-with-javascript-es6\/"},"author":{"name":"codeflare","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/person\/7e65653d49add95629f8c1053c5cd76a"},"headline":"Build a News App With Javascript ES6","datePublished":"2022-08-23T05:52:22+00:00","dateModified":"2022-08-23T05:52:25+00:00","mainEntityOfPage":{"@id":"https:\/\/codeflarelimited.com\/blog\/build-a-news-app-with-javascript-es6\/"},"wordCount":223,"commentCount":0,"publisher":{"@id":"https:\/\/codeflarelimited.com\/blog\/#organization"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/build-a-news-app-with-javascript-es6\/#primaryimage"},"thumbnailUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/08\/3266738_news_jpegfc1c848e6bfc932d46ceab3c19481f7c.jpeg","articleSection":["softare development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codeflarelimited.com\/blog\/build-a-news-app-with-javascript-es6\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codeflarelimited.com\/blog\/build-a-news-app-with-javascript-es6\/","url":"https:\/\/codeflarelimited.com\/blog\/build-a-news-app-with-javascript-es6\/","name":"Build a News App With Javascript ES6","isPartOf":{"@id":"https:\/\/codeflarelimited.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codeflarelimited.com\/blog\/build-a-news-app-with-javascript-es6\/#primaryimage"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/build-a-news-app-with-javascript-es6\/#primaryimage"},"thumbnailUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/08\/3266738_news_jpegfc1c848e6bfc932d46ceab3c19481f7c.jpeg","datePublished":"2022-08-23T05:52:22+00:00","dateModified":"2022-08-23T05:52:25+00:00","description":"In this tutorial, we are going to build a news application using ES6 features of javascript and Bootstrap.","breadcrumb":{"@id":"https:\/\/codeflarelimited.com\/blog\/build-a-news-app-with-javascript-es6\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codeflarelimited.com\/blog\/build-a-news-app-with-javascript-es6\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codeflarelimited.com\/blog\/build-a-news-app-with-javascript-es6\/#primaryimage","url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/08\/3266738_news_jpegfc1c848e6bfc932d46ceab3c19481f7c.jpeg","contentUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/08\/3266738_news_jpegfc1c848e6bfc932d46ceab3c19481f7c.jpeg","width":765,"height":350,"caption":"news app with javascript"},{"@type":"BreadcrumbList","@id":"https:\/\/codeflarelimited.com\/blog\/build-a-news-app-with-javascript-es6\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codeflarelimited.com\/blog\/"},{"@type":"ListItem","position":2,"name":"softare development","item":"https:\/\/codeflarelimited.com\/blog\/softare-development\/"},{"@type":"ListItem","position":3,"name":"Build a News App With Javascript ES6"}]},{"@type":"WebSite","@id":"https:\/\/codeflarelimited.com\/blog\/#website","url":"https:\/\/codeflarelimited.com\/blog\/","name":"","description":"Sustainable solutions","publisher":{"@id":"https:\/\/codeflarelimited.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codeflarelimited.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codeflarelimited.com\/blog\/#organization","name":"Codeflare Limited","url":"https:\/\/codeflarelimited.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2020\/11\/codeflare.png","contentUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2020\/11\/codeflare.png","width":1040,"height":263,"caption":"Codeflare Limited"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/person\/7e65653d49add95629f8c1053c5cd76a","name":"codeflare","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g","caption":"codeflare"},"description":"Latest tech news and coding tips.","sameAs":["https:\/\/codeflarelimited.com\/blog","https:\/\/facebook.com\/codeflretech","https:\/\/instagram.com\/codeflaretech","https:\/\/x.com\/codeflaretech","https:\/\/www.youtube.com\/channel\/UCuBLtiYqsajHdqw0uyt7Ofw?sub_confirmation=1"],"url":"https:\/\/codeflarelimited.com\/blog\/author\/watcher\/"}]}},"jetpack_featured_media_url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2022\/08\/3266738_news_jpegfc1c848e6bfc932d46ceab3c19481f7c.jpeg","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/986","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/comments?post=986"}],"version-history":[{"count":1,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/986\/revisions"}],"predecessor-version":[{"id":990,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/986\/revisions\/990"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/media\/989"}],"wp:attachment":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/media?parent=986"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/categories?post=986"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/tags?post=986"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}