<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Firefox India - Medium]]></title>
        <description><![CDATA[Firefox — Tech stories from India that pledge for a Healthy Internet - Medium]]></description>
        <link>https://medium.com/firefox-india?source=rss----138c0b45494e---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Firefox India - Medium</title>
            <link>https://medium.com/firefox-india?source=rss----138c0b45494e---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 11:16:05 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/firefox-india" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Physical Address: MAC Address]]></title>
            <link>https://medium.com/firefox-india/physical-address-mac-address-3451da8b8f58?source=rss----138c0b45494e---4</link>
            <guid isPermaLink="false">https://medium.com/p/3451da8b8f58</guid>
            <dc:creator><![CDATA[Vishal Sharma]]></dc:creator>
            <pubDate>Sat, 30 May 2020 00:20:20 GMT</pubDate>
            <atom:updated>2020-05-30T00:20:20.713Z</atom:updated>
            <content:encoded><![CDATA[<p>A media access control address(MAC) is a unique identifier assigned to a network interface controller for use within a network segment as a network address in communications. This is commonly used in most IEEE802 network technologies, including Ethernet, Wi-Fi and Bluetooth. But how it can be our physical address. In our daily life physical address mean your address, which is all about where you come from, which place, region, area or so on. I would assume that your physical address will be any place where you were present at any given time. Just imagine at any moment when your friends come to you and ask you, hi buddy, can give me your address and you’ll be like yeah my home address is 3C-95–09–01-FE. Everyone’s response at that moment would be like what we’re asking you where you are physically present and you be like yeah it’s my MAC address you have to just trace it. I think this is the future, in this current period when privacy is our major concern and we know how valuable it is nowadays. where Mozilla(Firefox) is the only which is giving privacy and presenting our data. But along with that, we should have basic knowledge about MAC address also</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eGApIvYdGo3b2gPc-ojrsw.png" /></figure><p><strong>What is a MAC Address?</strong></p><p>The MAC address is a specific attribute associated with an adapter to a network. The MAC addresses are also known as physical addresses or hardware addresses. We recognize an adapter that is unique on a LAN. The MAC addresses are hexadecimal numbers (length 48 bits) of 12 digits. MAC addresses are usually written in one of the following formats, by convention:</p><p>MM:MM:MM:SS:SS:SS, MMMM-MMSS-SSSS</p><p>The first half of a MAC address (24 BITS) contains the adapter fabricator’s ID number. Such identifiers are governed by a set of Internet standards. The second half of a MAC address (24 MORE BITS) reflects the serial number the supplier assigns to the adapter. In the example, 00:A0:C9:14:C8:29 The prefix 00A0C9 indicates the manufacturer is Intel Corporation.</p><p><strong>Why MAC Addresses?</strong></p><p>Recall that TCP/IP and other mainstream networking architectures generally adopt the OSI model. In this model, network functionality is subdivided into layers. MAC addresses function at the data link layer (layer 2 in the OSI model). They allow computers to uniquely identify themselves on a network at this relatively low level.</p><p><strong>What are MAC addresses used for?</strong></p><p>MAC addresses are the basics of low level which make your ethernet-based network work. Every network card has a unique MAC Address. Packets sent over the ethernet always come from a MAC address and are sent to a MAC address. When a network adapter receives a packet, then it compares the destination MAC address of the packet to the MAC address of the adapter itself. If the addresses suit, it handles the packet, otherwise it will be discarded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*biQTiV7B_K44g-s5yLVzDA.png" /></figure><p><strong>Find a MAC address in Windows</strong></p><p>In Windows 95, Windows 98 and Windows ME, MAC addresses are shown on the winipcfg utility. The ipconfig utility (using the /all option) can also be used in Windows NT and any newer versions of Windows. Winipcfg and ipconfig are both capable of viewing multiple MAC addresses. Next, one MAC address is shown for each adapter to the network. Instead, for other network adapters, one or more additional MAC addresses are shown.</p><p><strong>Find a MAC address in Unix or Linux</strong></p><p>The basic command used in Unix for finding a MAC address can differ depending on the operating system’s “flavour.” The ifconfig -a command returns MAC address in Linux, and some Unix versions. For Unix and Linux, it is also possible to locate MAC addresses by reading the message boot sequence, either on-screen as the device boots or from the message file initialization. The boot message log file is typically /var /log / messages, or /var / adm / messages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9oF2UhDbvdxVOsM5x60fWw.jpeg" /></figure><p>A key element of computer networking is the MAC address. The MAC addresses mark a device on the LAN in a unique way. MAC is an important component needed for running network protocols such as TCP / IP. Computer operating systems and broadband routers support viewing and sometimes changing MAC addresses. Some ISPs track their customers by MAC address. Changing a MAC address can be necessary in some cases to keep an Internet connection working. Changing MAC addresses may also increase privacy in some situations, though MAC addresses do not reveal any geographic or ISP location information like IP addresses do.</p><p>Maybe in future, our MAC address will be our new address</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3451da8b8f58" width="1" height="1" alt=""><hr><p><a href="https://medium.com/firefox-india/physical-address-mac-address-3451da8b8f58">Physical Address: MAC Address</a> was originally published in <a href="https://medium.com/firefox-india">Firefox India</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript and ES6 — “The Confusion”]]></title>
            <link>https://medium.com/firefox-india/javascript-and-es6-the-confusion-d5f59747562?source=rss----138c0b45494e---4</link>
            <guid isPermaLink="false">https://medium.com/p/d5f59747562</guid>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[ecmascript-6]]></category>
            <category><![CDATA[es6]]></category>
            <category><![CDATA[js]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Shivansh Srivastava]]></dc:creator>
            <pubDate>Wed, 18 Dec 2019 16:06:38 GMT</pubDate>
            <atom:updated>2019-12-18T16:06:38.178Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3Nz726eQvWoy9UJRdh1hSg.png" /></figure><h3><strong>JavaScript and ES6 — “The Confusion”</strong></h3><p>This article speaks to my present comprehension of the contrasts among JavaScript and ECMAScript. It is equipped towards individuals who know about JavaScript however might want a more clear comprehension of its association with ECMAScript, web browsers, Babel, and that’s only the tip of the iceberg.</p><p>It’s important to note that JavaScript preceded ECMAscript.</p><p><strong>“ Javascript and Java are Similar ”</strong> — Was one of the Confusion that prevailed and is somewhat there till now for people who have used Java and have never used JavaScript .</p><p>Brendon Eich (The Creator Of JS) decided that Java was too complicated with all its rules and so set out to create a less complex language that even a fledgling could code in. This is evident in such things like the relaxing of the need to have a semicolon in JavaScript . After the language was complete, the marketing team of Netscape requested Sun Microsystems to allow them to name it JavaScript as a marketing stunt and henceforth why a great many people who have never utilized JavaScript believe it’s identified with Java.</p><p>Before Netscape went down, they decided to start a standard that would guide the path of JavaScript, named ECMAScript.</p><p>ECMAScript had a few releases and in 1999 they released their last version (ECMAScript 3) before they went into hibernation for the next 10 years.Since then, ECMAScript has gained a lot of momentum and released its 6th Edition with the biggest changes its had thus far.</p><p>Regardless of whether ECMAScript is the language and JavaScript is a lingo is questionable, however not significant. If you continue to think like this it might confuse you.</p><p>There is no compiler out there that would run ECMAScript, and I believe JavaScript is viewed as the Language which actualizes a standard called ECMAScript.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*IC0WTFi9hrUW2XL-LxHO1w.jpeg" /><figcaption>JavaScript and ECMAScript : An Overview</figcaption></figure><h3>ARROW FUNCTIONS</h3><p>As we have seen previously that in JavaScript the function according to Old Syntax is made up of somewhat like shown below :</p><pre>// Old Syntax<br>function oldOne() {<br>console.log(“Hello World..!”);<br>}</pre><p>While for the ES6 version according to the new syntax we can have a expression similar Lambda expressions in Java. Wherein we define a variable and the functionality using empty brackets pointing to the function definition .</p><pre>// New Syntax<br>var newOne = () =&gt; {<br>console.log(“Hello World..!”);<br>}</pre><p>ES6 provides Arrow Functions, a new way to declare functions, to solve the problem of a very weird feature of JavaScript that : this keyword is not always the object itself.</p><p><strong>Explanation :</strong></p><p>Here =&gt; replaced function keyword and provided a convenient way of making functions: (param1, param2) =&gt; { function_body; }</p><h3>Implicit Return in Arrow Functions</h3><p>If only one expression is specified in the arrow function without the curly braces (compact body), it becomes the implicit return value of the function. In a with curly braces(block body), you must use an explicit <strong>return</strong> statement.</p><pre>const Shivansh = subject =&gt; `busy writing about ${subject}`<br>Shivansh(&#39;a blog on JS vs ES6&#39;); <br>// Output : &#39;busy writing about a blog on JS vs ES6&#39;</pre><p>When returning an object in a compact body, wrap the object with parentheses in order to distinguish it from a block body:</p><pre>const Shivansh = () =&gt; ({ <br>  Awesome: true,<br>  Smart: true,<br>  Lazy: false <br>});<br>Shivansh(); <br>// Output : { Awesome: true , Smart: true , Lazy: false }</pre><p>Remember that the this keyword is lexically-scoped which means that it takes the value of the context where it is written.</p><p>In the case of arrow function methods, the this keyword takes the value of the <strong>current</strong> execution context of the function where the object method was defined. What really matters is where the this keyword was written , not the place in source code where it is called.</p><p>Therefore, arrow functions are not suited for object methods and cannot be used as constructors either, when instantiating an object will raise a TypeError because you would be trying to initialize an object of type undefined (remember that there is no this keyword in arrow functions).</p><p>As a general rule, avoid using arrow functions when you need the this keyword or be very careful to what the this keyword points to.</p><h3>CLASSES</h3><p>This is one of the most important reason why I am fond of ES6 . ES6 introduced<strong> class</strong> keyword so that no need to use prototype inheritance when creating a class. Prototypical inheritance, while in my opinion is class-based.</p><pre>class Circle extends Shape {<br>draw() {<br>super.draw();<br>…<br>}<br>}</pre><p>As you can see clearly that in the above example we have used Prototype Inheritance while in the example given below there is no need for it when creating a class.</p><pre>// ES5<br>var Shape = function() {…};<br>Shape.prototype.draw = function() {…};<br>…</pre><h3>ARRAY / OBJECT DESTRUCTURING</h3><p>Insttead of writing this :</p><pre>var x = point[0], y = point[1];<br>var name = obj.name, age = obj.age;</pre><p>We Can make use of much simpler piece of code for performing the similar operation as given below :</p><pre>var [x, y] = point;<br>var { name, age } = obj;</pre><p>The <strong>destructuring</strong> assignment syntax is a JavaScript expression that makes it to unpack values from arrays, or properties /attributes from objects, into different variables.</p><pre>const ShivanshDetails = {<br>  name: &#39;Shivansh&#39;,<br>  college: &#39;VIT Vellore&#39;,<br>  domain: Web Dev,<br>};<br>const {name: name1 , name2} = ShivanshDetails;<br>console.log(`Hi ${name1} and ${name2}`);</pre><p>The variables name1 and name2 contain the desired values.</p><p>These were some noticeable features that I use in my daily work . To Learn More new Features of ES6 look <a href="http://es6-features.org/#Constants">here</a>.</p><h3>Compatibility Issues ?</h3><p>One common question about using another language is compatibility. The same question raised for ES5 and CoffeeScript too. Well, CoffeeScript is dead, so this question is reasonable. And here’s the answer:</p><p><strong>ES6 is safe.</strong></p><p>Take a look at this <a href="https://kangax.github.io/compat-table/es6/">link</a> and you will get to know that for sure all the browsers have extended the support to ES6 .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*Pnv8Be9WeQHjqIXBWfpe_w.png" /><figcaption>Photo credit: <a href="https://www.translatemedia.com/translation-blog/exploring-the-source-of-language-comprehension/">translatemedia.com</a></figcaption></figure><h4>Remember that !</h4><p><strong><em>If your JavaScript code contains Import or Export, let and const features, then your JavaScript is using next generation syntax which is ES6.</em></strong></p><blockquote><strong>JavaScript = ECMAScript + DOM API;</strong></blockquote><p>That leaves us with this fun fact: JavaScript is based on ECMAScript , and ECMAScript is based on JavaScript .</p><p>Thanks for reading! If you find this post useful please consider clapping for this post and share it with everyone!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5f59747562" width="1" height="1" alt=""><hr><p><a href="https://medium.com/firefox-india/javascript-and-es6-the-confusion-d5f59747562">JavaScript and ES6 — “The Confusion”</a> was originally published in <a href="https://medium.com/firefox-india">Firefox India</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>