<?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: Prince Roy</title>
    <description>The latest articles on DEV Community by Prince Roy (@iprinceroyy).</description>
    <link>https://dev.to/iprinceroyy</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%2F998841%2F3bf2a616-5041-44a2-92f3-80a2dfd2f209.jpg</url>
      <title>DEV Community: Prince Roy</title>
      <link>https://dev.to/iprinceroyy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/iprinceroyy"/>
    <language>en</language>
    <item>
      <title>What is a tag?</title>
      <dc:creator>Prince Roy</dc:creator>
      <pubDate>Sun, 03 Sep 2023 06:42:51 +0000</pubDate>
      <link>https://dev.to/iprinceroyy/what-is-a-tag-dm9</link>
      <guid>https://dev.to/iprinceroyy/what-is-a-tag-dm9</guid>
      <description>&lt;p&gt;A tag is a format that is being used to defined each content on a web page. It is then a web browser that understands tags, parses, and renders contents accordingly. Tags have two parts: an opening tag and a closing tag. Tag is not a part of actual content displayed on a browser.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--pFAjFk_k--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oncnyoz9rfblejdaynb8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--pFAjFk_k--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/oncnyoz9rfblejdaynb8.png" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>website</category>
      <category>html</category>
    </item>
    <item>
      <title>What is a web page?</title>
      <dc:creator>Prince Roy</dc:creator>
      <pubDate>Sat, 02 Sep 2023 15:18:34 +0000</pubDate>
      <link>https://dev.to/iprinceroyy/what-is-a-web-page-mdi</link>
      <guid>https://dev.to/iprinceroyy/what-is-a-web-page-mdi</guid>
      <description>&lt;p&gt;A web page is an HTML file. An HTML file can be linked to one or more other HTML files to build a visual appealing website to be displayed on a browser.&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--QvPEGtr1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xnwvp39mzzybmjn07trd.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--QvPEGtr1--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xnwvp39mzzybmjn07trd.jpg" alt="Image description" width="800" height="463"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>html</category>
      <category>beginners</category>
    </item>
    <item>
      <title>What is a website?</title>
      <dc:creator>Prince Roy</dc:creator>
      <pubDate>Sat, 02 Sep 2023 15:02:50 +0000</pubDate>
      <link>https://dev.to/iprinceroyy/what-is-a-website-17ch</link>
      <guid>https://dev.to/iprinceroyy/what-is-a-website-17ch</guid>
      <description>&lt;p&gt;A web page or a group of web pages under the same domain constitutes a website. For example, &lt;code&gt;demo.com&lt;/code&gt; might have numerous pages interlinked with each other, not the pages from different domain like &lt;code&gt;another.com&lt;/code&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--UOA3b4BQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/km8wnbloc51x3v1198nq.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--UOA3b4BQ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/km8wnbloc51x3v1198nq.jpg" alt="Image description" width="800" height="568"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>html</category>
      <category>beginners</category>
    </item>
    <item>
      <title>What is HTML? Why do we need to learn HTML?</title>
      <dc:creator>Prince Roy</dc:creator>
      <pubDate>Sat, 02 Sep 2023 14:51:29 +0000</pubDate>
      <link>https://dev.to/iprinceroyy/what-is-html-why-do-we-need-to-learn-html-5chk</link>
      <guid>https://dev.to/iprinceroyy/what-is-html-why-do-we-need-to-learn-html-5chk</guid>
      <description>&lt;p&gt;Hyper Text Markup Language or HTML is the markup language used to create the backbone/structure of a website/web app. &lt;/p&gt;

&lt;p&gt;As HTML is the first file which is being loaded and parsed by a browser and every web page is run on a browser. Henceforth, it is a crucial part of a web. It is similar to the main method of some other programing languages, where execution begins.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>html</category>
    </item>
    <item>
      <title>Here's a few examples of features from ECMAScript 2021(ES11):</title>
      <dc:creator>Prince Roy</dc:creator>
      <pubDate>Sun, 22 Jan 2023 08:11:55 +0000</pubDate>
      <link>https://dev.to/iprinceroyy/heres-a-few-examples-of-features-from-ecmascript-2021es11-438a</link>
      <guid>https://dev.to/iprinceroyy/heres-a-few-examples-of-features-from-ecmascript-2021es11-438a</guid>
      <description>&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Object.fromEntries()&lt;/code&gt; method:
This method creates an object from a given list of key-value pairs.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const entries - [['foo', 1], ['bar', 2]];
const obj = Object.fromEntries(entries);
console.log(obj);
// {foo: 1, bar: 2}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;String.prototype.matchAll()&lt;/code&gt; method:
This methods returns an iterator containing all the matches of a regular expression in a string.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const str = 'Hello, world!';
const regex = /\w+/g;
const matches = str.matchAll(regex);
console.log(matches);
//Iterator { 'h', 'e', 'l', 'l', 'o', 'w', 'o', 'r', 'l', 'd'}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Promise.any()&lt;/code&gt; method:
This method returns a promise that is fulfilled with the first fulfilled promise in an iterable of promises.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const p1 = new Promise((resolve) =&amp;gt; setTimeout(() =&amp;gt; resolve('p1'), 100));

const p2 = new Promise((resolve) =&amp;gt; setTimeout(() =&amp;gt; resolve('p2'), 200));

const p3 = new Promise((resolve) =&amp;gt; setTimeout(() =&amp;gt; resolve('p3'), 300));

Promise.any([p1, p2, p3]).then(result =&amp;gt; console.log(result));
// 'p1'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;globalThis&lt;/code&gt; property:
This property provides a way to access the global object in a consistent way, regardless of the environment (browser or Node.js).
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;console.log(globalThis);
// Window {...} in browser, global in Node.js
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Optional chaining&lt;/code&gt;: 
This operator allows you to access a property of an object, even if the object or any of its preceding objects in the chain are null or undefined.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let obj = { a: { b: { c: "hello" } } };
console.log(obj?.a?.b?.c);  // prints "hello"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Nullish coalescing&lt;/code&gt;: 
This operator allows you to provide a default value for a variable only if it is null or undefined.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let x = null;
console.log(x ?? "default"); // prints "default"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Dynamic import()&lt;/code&gt;:
This method allows you to dynamically load modules at runtime, instead of loading all modules at the start of the program.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;async function loadModule() {
  const module = await import('./module.js');
  // Use the module
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;WeakRef and FinalizationRegistry&lt;/code&gt;: 
These are two new types that allow you to create weak references to objects, and to register callbacks to be called when an object is garbage collected.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const obj = {};
const weakRef = new WeakRef(obj);
console.log(weakRef.deref()); // prints the object
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Private methods and fields&lt;/code&gt;:
ECMAScript 2021 introduces syntax for declaring private methods and fields in classes. Private methods and fields can only be accessed within the class.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;class MyClass {
  #privateField = "I am private";

  #privateMethod() {
    console.log("I am a private method");
  }

  publicMethod() {
    console.log(this.#privateField);
    this.#privateMethod();
  }
}

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;These are additional features that ECMAScript 2021 introduces, it's important to note that some of them may not be supported on all JavaScript engines yet. Follow official documents for more features &lt;a href="https://262.ecma-international.org/6.0/" rel="noopener noreferrer"&gt;ECMAScript&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>welcome</category>
      <category>discuss</category>
    </item>
  </channel>
</rss>
