<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Tejodeep Mitra Roy</title>
    <description>The latest articles on DEV Community by Tejodeep Mitra Roy (@tejodeepmitraroy).</description>
    <link>https://dev.to/tejodeepmitraroy</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1587510%2F0f16a51a-bd10-40dc-9cd8-4e5fc941a883.png</url>
      <title>DEV Community: Tejodeep Mitra Roy</title>
      <link>https://dev.to/tejodeepmitraroy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/tejodeepmitraroy"/>
    <language>en</language>
    <item>
      <title>9 Useful Coding Tools Every Web Developer Should Use In Their Projects 📚</title>
      <dc:creator>Tejodeep Mitra Roy</dc:creator>
      <pubDate>Tue, 15 Jul 2025 10:17:06 +0000</pubDate>
      <link>https://dev.to/tejodeepmitraroy/9-useful-coding-tools-every-web-developer-should-use-in-their-projects-3g8d</link>
      <guid>https://dev.to/tejodeepmitraroy/9-useful-coding-tools-every-web-developer-should-use-in-their-projects-3g8d</guid>
      <description>&lt;p&gt;Frontend development moves fast. Whether you're working on client projects or personal builds, having the right tools saves time, reduces headaches, and boosts quality.&lt;/p&gt;

&lt;p&gt;Early in my dev journey, I often wondered: “What tools do pros actually use?” Most resources were vague or overloaded with options. So I started collecting the ones that actually made a difference in my daily workflow.&lt;/p&gt;

&lt;p&gt;This list is built for new developers, students, and anyone looking to upgrade their toolkit with tools that solve real problems, like API testing, responsive previews, font discovery, and more.&lt;/p&gt;

&lt;p&gt;These are tools I’ve used and trust. Use what fits your workflow now, and bookmark the rest for later.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. &lt;a href="https://www.sanity.io" rel="noopener noreferrer"&gt;Sanity.io &lt;/a&gt; – Headless CMS for blogs &amp;amp; landing pages
&lt;/h2&gt;

&lt;p&gt;Sanity IO is a modern, flexible, and managed headless CMS that’s perfect for devs who want structure and speed.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsu0a0755ildanyyagedr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsu0a0755ildanyyagedr.png" alt="This is the screen shot of sanity.io's UI" width="800" height="381"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Some of the most valuable features for developers include:
&lt;/h2&gt;

&lt;p&gt;🧠 Structured content modeling – Define your content schema in code and reuse it anywhere. No rigid templates or limitations—just full flexibility.&lt;/p&gt;

&lt;p&gt;⚡ Real-time editing – Content updates happen in real-time. Team members can collaborate and see changes instantly, making it perfect for live editing and content-heavy workflows.&lt;/p&gt;

&lt;p&gt;🧱 Customizable Studio – Sanity Studio is built with React and entirely customizable. You can theme it, extend it, or even embed custom input components.&lt;/p&gt;

&lt;p&gt;🔗 API-first &amp;amp; frontend agnostic – Whether you’re using Next.js, Astro, SvelteKit, or plain HTML, you fetch your content using a powerful GraphQL or GROQ API.&lt;/p&gt;

&lt;p&gt;🚀 Free for indie devs – The generous free tier is enough for small sites, personal projects, or MVPs. Plus, it scales beautifully for production and enterprise workloads.&lt;/p&gt;

&lt;p&gt;🌍 Ideal use cases – Marketing websites, developer portfolios, startup landing pages, headless eCommerce setups, content hubs.&lt;/p&gt;

&lt;h3&gt;
  
  
  Key features &amp;amp; why to use it:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Real-time content editing with structured content modeling&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;React-based Studio that can be fully customized&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Great for JAMstack sites using Next.js, Astro, or Gatsby&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  🌍 Website: &lt;a href="https://www.sanity.io" rel="noopener noreferrer"&gt;https://www.sanity.io&lt;/a&gt;
&lt;/h4&gt;




&lt;h2&gt;
  
  
  2. &lt;a href="https://www.postman.com" rel="noopener noreferrer"&gt;Postman&lt;/a&gt; – The all-in-one API Development Platform
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F73hskl6ujfhp9j9z8u0v.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F73hskl6ujfhp9j9z8u0v.png" alt="Linkedin Apis in Postman Image Preview" width="800" height="501"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Postman is a powerful API platform for building, testing, debugging and documenting, and monitoring APIs to accelerate developers' development workflows.&lt;/p&gt;

&lt;h3&gt;
  
  
  Key features &amp;amp; why to use it:
&lt;/h3&gt;

&lt;p&gt;🚀 Collaborative API development: Rapidly prototype, document, test, and demo APIs with live team feedback and shared workspaces for higher productivity.&lt;/p&gt;

&lt;p&gt;🧪 Powerful testing &amp;amp; automation: Develop and execute API automated tests, connect with CI/CD infrastructures, and track API performance to avoid breaking before release.&lt;/p&gt;

&lt;p&gt;📚 Auto-generated documentation: Create and update interactive API docs automatically for easy onboarding and better partner collaboration.&lt;/p&gt;

&lt;p&gt;🤖 AI-assisted workflows: Assign Postbot, Postman’s AI-powered bot, to tasks like drafting test scripts, producing collection tests, and interpreting your API data effortlessly.&lt;/p&gt;

&lt;h4&gt;
  
  
  🌍 Website: &lt;a href="https://www.postman.com" rel="noopener noreferrer"&gt;https://www.postman.com&lt;/a&gt;
&lt;/h4&gt;




&lt;h2&gt;
  
  
  3. &lt;a href="https://www.wappalyzer.com" rel="noopener noreferrer"&gt;Wappalyzer&lt;/a&gt; – Discover any website’s tech stack in seconds
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6ul9qd44152rx18wkn4b.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6ul9qd44152rx18wkn4b.png" alt="Wappalyzer tool preview" width="800" height="365"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Wappalyzer is a powerful tool that uncovers the technologies behind any website—frameworks, CMSs, analytics, eCommerce platforms, and more. It’s a must-have for developers, marketers, and product teams doing research or scouting competitors.&lt;/p&gt;

&lt;h3&gt;
  
  
  Key features &amp;amp; why to use it:
&lt;/h3&gt;

&lt;p&gt;– Just enter a URL to reveal the frameworks, languages, libraries, hosting providers, and tools a site uses.&lt;/p&gt;

&lt;p&gt;– Track tech adoption trends across industries and regions. Find out which tools your competitors or target clients are using.&lt;/p&gt;

&lt;p&gt;– Create targeted lists of companies using specific platforms (e.g. Shopify, WordPress, React), complete with company and contact info.&lt;/p&gt;

&lt;p&gt;– Check tech stacks in your browser, or plug into their API to power your own SaaS tools or dashboards.&lt;/p&gt;

&lt;h4&gt;
  
  
  🌍 Website: &lt;a href="https://www.wappalyzer.com" rel="noopener noreferrer"&gt;https://www.wappalyzer.com&lt;/a&gt;
&lt;/h4&gt;




&lt;h2&gt;
  
  
  4. &lt;a href="https://www.webmobilefirst.com/https://www.webmobilefirst.com" rel="noopener noreferrer"&gt;Mobile Simulator&lt;/a&gt;– Test responsive design in the browser
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F50kustctfrmywd7cy8mr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F50kustctfrmywd7cy8mr.png" alt="Mobile Simulator Working UI" width="800" height="662"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A powerful Chrome extension for checking how your site looks on mobile devices.&lt;/p&gt;

&lt;h3&gt;
  
  
  Key features &amp;amp; why to use it:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Simulate dozens of mobile screens directly in your browser&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Preview behavior, layout, and UI interactions&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;No need to connect real devices for quick tests&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  🌍 Website: &lt;a href="https://www.webmobilefirst.com/" rel="noopener noreferrer"&gt;https://www.webmobilefirst.com/&lt;/a&gt;
&lt;/h4&gt;




&lt;h2&gt;
  
  
  5. &lt;a href="https://chromewebstore.google.com/detail/font-finder/bhiichidigehdgphoambhjbekalahgha" rel="noopener noreferrer"&gt;Font Finder&lt;/a&gt; - Find &amp;amp; Identify any fonts on a Website instantly
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2tcuquynuugy76p00du3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2tcuquynuugy76p00du3.png" alt="Font Finder Google Chrome store Page" width="800" height="503"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Font Finder is a tool for identifying and finding Font Family, width, size, and letter spacing from any website with a single click.&lt;/p&gt;

&lt;h3&gt;
  
  
  Key features &amp;amp; why to use it:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Click any text on a page to get its font family, size, weight, and color&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Works on dynamic elements too—great for inspecting UI designs&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Saves time when matching client brand styles or themes&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  🌍 website: &lt;a href="https://chromewebstore.google.com/detail/font-finder/bhiichidigehdgphoambhjbekalahgha" rel="noopener noreferrer"&gt;https://chromewebstore.google.com/detail/font-finder/bhiichidigehdgphoambhjbekalahgha&lt;/a&gt;
&lt;/h4&gt;




&lt;h2&gt;
  
  
  6. &lt;a href="https://gofullpage.com" rel="noopener noreferrer"&gt;GoFullPage&lt;/a&gt; - Screenshot tool for Website pages
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F17xah4v735h7a6iy1ztn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F17xah4v735h7a6iy1ztn.png" alt="GoFullPage - Screenshot tool for Website pages" width="800" height="588"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Full-page website screenshots in one click. Take clean, scroll-free full-page captures of any website.&lt;/p&gt;

&lt;h3&gt;
  
  
  Key features &amp;amp; why to use it:
&lt;/h3&gt;

&lt;p&gt;Capture entire webpages, not just what’s visible on screen&lt;/p&gt;

&lt;p&gt;Export as PNG or PDF without needing DevTools&lt;/p&gt;

&lt;p&gt;Ideal for portfolios, documentation, and client review&lt;/p&gt;

&lt;h4&gt;
  
  
  🌍 Website: &lt;a href="https://gofullpage.com" rel="noopener noreferrer"&gt;https://gofullpage.com&lt;/a&gt;
&lt;/h4&gt;




&lt;h2&gt;
  
  
  7. &lt;a href="https://www.netlify.com" rel="noopener noreferrer"&gt;Netlify&lt;/a&gt; – Fast deployment for static websites
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqj1ldu4s710uj5nglwhw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqj1ldu4s710uj5nglwhw.png" alt="Netlify Landing Page" width="800" height="381"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Netlify is a provider there you can just take your site live in seconds with drag-and-drop or Git-based deploys.&lt;/p&gt;

&lt;h3&gt;
  
  
  Key features &amp;amp; why to use it:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Automatically builds and deploys from GitHub, GitLab, or Bitbucket&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Free SSL, global CDN, and instant rollbacks&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Great for hosting JAMstack sites, SPAs, and frontend apps&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  🌍 Website: &lt;a href="https://www.netlify.com" rel="noopener noreferrer"&gt;https://www.netlify.com&lt;/a&gt;
&lt;/h4&gt;




&lt;h2&gt;
  
  
  8. &lt;a href="https://responsively.app" rel="noopener noreferrer"&gt;Responsively App&lt;/a&gt; – Multi-device preview for responsive dev
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9ezrxfxieze12ixpjjkt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9ezrxfxieze12ixpjjkt.png" alt="Responsively App application preview" width="800" height="479"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Responsively App is a tool to preview your site across multiple screen sizes at once.&lt;/p&gt;

&lt;h3&gt;
  
  
  Key features &amp;amp; why to use it:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Real-time view of your site on different devices and resolutions&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Supports hot reload and built-in dev tools&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Speeds up responsive design testing&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  🌍 Website: &lt;a href="https://responsively.app" rel="noopener noreferrer"&gt;https://responsively.app&lt;/a&gt;
&lt;/h4&gt;




&lt;h2&gt;
  
  
  9. &lt;a href="https://cursorful.com" rel="noopener noreferrer"&gt;Cursorful&lt;/a&gt; – Record, edit, and share stunning product demos
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6lhq8941r3nsukab7zjj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6lhq8941r3nsukab7zjj.png" alt="Cursorful Image" width="800" height="381"&gt;&lt;/a&gt;&lt;br&gt;
Sometimes you need clean visuals without opening Photoshop.&lt;/p&gt;

&lt;p&gt;Cursorful is a powerful screen recording and editing tool made for devs, designers, and product teams who want to create polished walkthroughs and tutorials with zero friction.&lt;/p&gt;

&lt;h3&gt;
  
  
  Key features &amp;amp; why to use it:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;One-click screen recording with smart cursor tracking&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Built-in editor to trim, annotate, and polish clips without external tools&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Export as clean, compressed videos perfect for landing pages, docs, or social&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Ideal for product walkthroughs, UI previews, or bug report videos&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h4&gt;
  
  
  🌍 Website: &lt;a href="https://cursorful.com" rel="noopener noreferrer"&gt;https://cursorful.com&lt;/a&gt;
&lt;/h4&gt;




&lt;p&gt;Writing has always been my passion, and it gives me pleasure to help and share with other people, to inspire people, and to comment on your thoughts.&lt;/p&gt;

&lt;p&gt;Also, connect with me on &lt;a href="https://x.com/tejodeepsama" rel="noopener noreferrer"&gt;Twitter&lt;/a&gt;, &lt;a href="https://www.linkedin.com/in/tejodeepmitraroy" rel="noopener noreferrer"&gt;LinkedIn&lt;/a&gt;, and &lt;a href="https://github.com/tejodeepmitraroy" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;!&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>api</category>
      <category>productivity</category>
    </item>
    <item>
      <title>How to Fetch Data from any API in JavaScript</title>
      <dc:creator>Tejodeep Mitra Roy</dc:creator>
      <pubDate>Fri, 07 Jun 2024 04:31:16 +0000</pubDate>
      <link>https://dev.to/tejodeepmitraroy/how-to-fetch-data-from-any-api-in-javascript-5cdd</link>
      <guid>https://dev.to/tejodeepmitraroy/how-to-fetch-data-from-any-api-in-javascript-5cdd</guid>
      <description>&lt;p&gt;Fetching data from an API in JavaScript is commonly done using the fetch API or libraries like Axios. Here’s a simple example of how to use both methods:&lt;/p&gt;

&lt;h2&gt;
  
  
  Using the Fetch API
&lt;/h2&gt;

&lt;p&gt;The fetch API is a modern and widely supported way to make HTTP requests in JavaScript. It returns a promise that resolves to the response of the request.&lt;/p&gt;

&lt;h3&gt;
  
  
  Basic Example:
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// URL of the API
const apiUrl = 'https://api.example.com/data';

// Fetch data from the API
fetch(apiUrl)
  .then(response =&amp;gt; {
    if (!response.ok) {
      throw new Error('Network response was not ok ' + response.statusText);
    }
    return response.json(); // parse the JSON from the response
  })
  .then(data =&amp;gt; {
    console.log(data); // Handle the JSON data
  })
  .catch(error =&amp;gt; {
    console.error('There has been a problem with your fetch operation:', error);
  });
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Using Async/Await with Fetch
&lt;/h2&gt;

&lt;p&gt;Using async and await makes the code look cleaner and more readable.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// URL of the API
const apiUrl = 'https://api.example.com/data';

// Function to fetch data
async function fetchData() {
  try {
    const response = await fetch(apiUrl);
    if (!response.ok) {
      throw new Error('Network response was not ok ' + response.statusText);
    }
    const data = await response.json(); // parse the JSON from the response
    console.log(data); // Handle the JSON data
  } catch (error) {
    console.error('There has been a problem with your fetch operation:', error);
  }
}

// Call the function
fetchData();
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Summary
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Use the fetch API for a built-in, promise-based approach to make HTTP requests.&lt;/li&gt;
&lt;/ul&gt;

</description>
    </item>
  </channel>
</rss>
