<?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[Stories by Time Darden on Medium]]></title>
        <description><![CDATA[Stories by Time Darden on Medium]]></description>
        <link>https://medium.com/@time-darden?source=rss-eaf268418846------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*kUGwyNBY2RHzSfcb-p6vbA.jpeg</url>
            <title>Stories by Time Darden on Medium</title>
            <link>https://medium.com/@time-darden?source=rss-eaf268418846------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 11:32:18 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@time-darden/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Iterator Functions in JavaScript]]></title>
            <link>https://time-darden.medium.com/iterator-functions-in-javascript-f29372c570b2?source=rss-eaf268418846------2</link>
            <guid isPermaLink="false">https://medium.com/p/f29372c570b2</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[methods]]></category>
            <category><![CDATA[iterators]]></category>
            <dc:creator><![CDATA[Time Darden]]></dc:creator>
            <pubDate>Wed, 10 Feb 2021 19:16:48 GMT</pubDate>
            <atom:updated>2021-02-10T19:16:48.499Z</atom:updated>
            <content:encoded><![CDATA[<p>Iterator functions apply a given function to each element of an array with the result of returning a value, a set of values, or a new array.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*m3maALYD0Nx07MAYaRg8Rg.jpeg" /><figcaption>Photo courtesy of dreamstime.com</figcaption></figure><p><strong>Non-Array-Generating Iterator Functions</strong></p><p>Non-array-generating iterator functions do not generate a new array; these functions operate on each element of an array or they generate a value from an array, such as a sum. Let’s examine <strong>forEach()</strong>, <strong>every()</strong>, <strong>some()</strong>, and <strong>reduce()</strong>.</p><p><strong>forEach()</strong></p><p>The <strong>forEach() function</strong> accepts a function as an argument on an array and applies the called function to each element of an array. An example of the application is below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*CgCiGd-eLnhkwza_fvumAw.png" /><figcaption>Code courtesy of MDN</figcaption></figure><p><strong>every()</strong></p><p>The <strong>every() function</strong> utilizes the application of a Boolean function to an array and returns true if the function evaluates as true for every element in the entire array:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/1*fLvEssn7BE8ryG2SGaDfKQ.png" /><figcaption>Code courtesy of MDN</figcaption></figure><p><strong>some()</strong></p><p>The <strong>some() function</strong> applies Boolean logic to an array and returns true if at least one of the array elements meets the criterion of the Boolean function:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/1*6_lvOMFXF9eDNXCQwVAPMQ.png" /><figcaption>Code courtesy of MDN</figcaption></figure><p><strong>reduce()</strong></p><p>The <strong>reduce() function</strong> executes a selected reducer function(i.e. an accumulator function) on each element of the array resulting in a single value:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*NYZIlwtgiAt9JQAIZ7coJw.png" /><figcaption>Code courtesy of MDN</figcaption></figure><p><strong>reduce()</strong> can also be used with strings to perform concatenation.</p><p><strong>reduceRight()</strong> works like <strong>reduce()</strong> to reduce the elements of an array to a single value, only it works from the right side of the array to the left instead of left to right:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*lqnSwmSJL0X4OUqfIBDdCQ.png" /><figcaption>Code courtesy of MDN</figcaption></figure><p><strong>Array-Generating Iterator Functions</strong></p><p>Now, we’ll cover the two iterator functions that return a new array, <strong>map()</strong> and <strong>filter()</strong>.</p><p><strong>map()</strong></p><p>The <strong>map() function</strong> iterates through a provided array and applies the provided function to each element. Ultimately, a new array is produced and returned:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/384/1*frId5qlmAaJxY6upPUm9lQ.png" /><figcaption>Code courtesy of MDN</figcaption></figure><p><strong>filter()</strong></p><p>The<strong> filter() function</strong> iterates through an array and returns a new array featuring those elements that meet the provided criterion:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*4DqiQMdQyHnCrdpIf51piA.png" /><figcaption>Code courtesy of MDN</figcaption></figure><p>These methods are essential to understand when contemplating the effective navigation of arrays. Consider them when you’re assessing the most affective approach for your code.</p><p>Source: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find">MDN Web Docs</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f29372c570b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Array.prototype.find(), a JavaScript Method]]></title>
            <link>https://time-darden.medium.com/array-prototype-find-a-javascript-method-63c4658d6882?source=rss-eaf268418846------2</link>
            <guid isPermaLink="false">https://medium.com/p/63c4658d6882</guid>
            <category><![CDATA[array-methods]]></category>
            <category><![CDATA[array-functions]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Time Darden]]></dc:creator>
            <pubDate>Wed, 10 Feb 2021 18:19:40 GMT</pubDate>
            <atom:updated>2021-02-10T18:19:40.788Z</atom:updated>
            <content:encoded><![CDATA[<p>As you’re exploring JavaScript, you’ll learn that the language contains objects with built-in methods. As you work with arrays, a type of JavaScript object, you will need to locate elements within arrays for various purposes. Here, we’ll explore how the <strong>array.prototype.find()</strong> method functions on an array.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*xxIt13qBq7NIzWVo32PiMA.jpeg" /><figcaption>Where’s Waldo? poster. Source: Amazon.com</figcaption></figure><h3><strong>Array.prototype.find () defined</strong></h3><p>When seeking the first incidence of an array element meeting a specific criterion, you will want to consider using the <strong>find</strong> method. As a method, <strong>array.prototype.find()</strong> uses a testing function to search a given array and returns the first element of the array that meets the criteria of the testing function; if no existing element matches the testing function, array.prototype.find() returns <em>undefined</em>.</p><p>Array.prototype.find() visits every index of the array as it exists when the function is called, this iteration will include visits to those indexes with no currently assigned value. Other methods which skip unassigned indexes may be more efficient depending on your search needs. Deleted elements of the array are also visited during the execution of array.prototype.find().</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*fXGg-F1N5oMK_SggzNOBNQ.png" /><figcaption>Code sample courtesy of MDN</figcaption></figure><p>The find method locates and immediately returns the first element of the array that meets the specified criteria of the function. In the above example, the element at index 1, array1[1], is returned because it is the first sequential element that meets the criterion of being greater than 10.</p><h3><strong>Related Methods</strong></h3><ul><li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex">findIndex()</a> is used to <strong>locate the index</strong> of the found array element.</li><li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/indexOf">Array.prototype.indexOf()</a>is used to <strong>determine the</strong> <strong>index of a value</strong>. (similar to <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex">findIndex()</a>, but checks each element for equality with the value instead of using a testing function.)</li><li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes">Array.prototype.includes()</a>will <strong>verify if a value exists in an array</strong> by comparing each element in the array for equality with the sought value (does not use a testing function).</li><li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/some">Array.prototype.some()</a>will <strong>determine if any element satisfies the provided testing function</strong>.</li></ul><p>Array.prototype.find() and its related methods are very helpful in navigating through JavaScript arrays. You will see that these methods can be used in conjunction with other methods such as <strong>array.sort()</strong>. We will explore the sort function in an upcoming post. Stay tuned!</p><p>Source: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find">MDN Web Docs</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=63c4658d6882" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Asynchronicity in JavaScript]]></title>
            <link>https://time-darden.medium.com/asynchronicity-in-javascript-c20f906a682d?source=rss-eaf268418846------2</link>
            <guid isPermaLink="false">https://medium.com/p/c20f906a682d</guid>
            <category><![CDATA[code-newbie]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming-paradigms]]></category>
            <category><![CDATA[asynchronous-javascript]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Time Darden]]></dc:creator>
            <pubDate>Mon, 28 Sep 2020 16:35:47 GMT</pubDate>
            <atom:updated>2020-09-30T15:39:32.921Z</atom:updated>
            <content:encoded><![CDATA[<h3>JavaScript and “Java”: Asynchronicity</h3><h3><strong>asynchronous</strong></h3><p>Not coinciding in time.</p><p><strong><em>adjective</em></strong> Not simultaneous; not concurrent in time; — opposed to synchronous.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*WD9mjcNlmfn4I7eJiKE6OQ.png" /></figure><p>In this article, we’ll explore how asynchronicity in JavaScript is like ordering coffee in a Starbucks line.</p><p>Generally, code for a program executes in order with each specified action occurring when called, sequentially. However, when functions are dependent upon the results of other functions, the determining function must complete prior to the execution of the dependent function. On the user interface side, the program will appear to have stopped working. This is synchronous execution and it’s inefficient on the side of a machine with multiple available processors and frustrating to increasingly impatient users. Fortunately, programming environments, web browsers in the case of web applications, can now provide Application Programming Interfaces (APIs) which allow tasks to be completed asynchronously.</p><p>When web applications run a block of code while holding control of the browser from the user, this is called “<strong>blocking</strong>.” JavaScript behaves this way because it is “<strong>single-threaded</strong>.”</p><p>A thread is essentially a single process that a program may use to complete one solitary task at a time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/252/1*Eoo_XcgIfP37Fi4-i02_fw.png" /><figcaption>Tasks being executed sequentially on a single thread.</figcaption></figure><p>JavaScript is organically single-threaded. Even with multiple cores available, in its earlier stages, JavaScript would only run tasks on one thread, the main thread. Over time, JavaScript evolved to accommodate the ability to run multiple tasks simultaneously. <a href="https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API">Web workers</a> enable another thread, separate from the main thread, to run a script in the background. The “worker” will usually run labor intensive processes on a separate track from the main thread so that the user interaction is not blocked and in many cases the user will not notice any interruption while interacting with the User Interface. This asynchronous code execution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/358/1*oyImJzp-xs9QRWxqEqbjdA.png" /><figcaption>Asynchronous code execution enabled by a worker thread.</figcaption></figure><p>Worker threads allow JavaScript to operate asynchronously, but their uses are limited. For instance, workers cannot access the Document Object Model (DOM) so they cannot update the User Interface (UI). The worker threads allow simultaneous threads to run without blocking user access to the browser; however, dependent processes will still throw an error if the processes upon which they rely have not completed prior to the dependent processes being called. For instance, in the above example, if Task 3 is dependent upon the completion of Task 2, Task 3 will throw an error if it is ready to deploy prior to the completion of Task 2. JavaScript addresses this complication with “<strong>Promises</strong>” which allow you to set an operation and then wait until the result is returned prior to running the dependent operation.</p><p>Let’s discuss how asynchronous task execution in code correlates to an experience in a Starbucks line. You enter the coffee shop and wait in line to place your order. From the moment you reach the counter to give your order, an asynchronous process is set into motion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*HbnJ0RiMMu-GSz-aQb7k4g.png" /><figcaption>Barista taking an order and barista preparing a cup with a customer’s name.</figcaption></figure><p>The barista places your order in a queue. You can observe the baristas working behind the counter. As you wait for your tall café latte with almond milk, you observe their actions. The baristas are equivalent to main threads, they can execute or delegate the completion of any task in the process of completing an order. The baristas outsource labor-intensive tasks to “worker threads” which take the form of their equipment (i.e. coffee machines, toaster ovens, and other supplies). Like worker threads, the equipment is limited in operational capacity and in the aggregate cannot complete all the tasks which a barista is capable of executing. While some machines are capable of limited interface with the guest (i.e. the credit card processor or phone scanner), the machines cannot smile at the guests or present their coffees.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/399/1*DvkGZCTRHiYKwXRLzJyKcQ.png" /><figcaption>Barista preparing a beverage with help from “worker thread” equipment.</figcaption></figure><p>As a barista operates a coffee machine, a toaster oven warms a pastry and will alert the barista of the completion of its worker thread process. The baristas work through gathering the components of each order and present them to the guest to complete the order and <strong>return</strong> it as <strong>promised</strong>. The concept of “<strong>promises</strong>” are next in this discussion …</p><p><strong>Source</strong>: <a href="https://www.wordnik.com/words/asynchronous">https://www.wordnik.com/words/asynchronous</a></p><p><strong>Source</strong>: <a href="https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Asynchronous/Concepts">https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Asynchronous/Concepts</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c20f906a682d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Components in React.js: Function or Class?]]></title>
            <link>https://time-darden.medium.com/components-in-react-js-function-or-class-e664e0314221?source=rss-eaf268418846------2</link>
            <guid isPermaLink="false">https://medium.com/p/e664e0314221</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[code-newbie]]></category>
            <category><![CDATA[components]]></category>
            <dc:creator><![CDATA[Time Darden]]></dc:creator>
            <pubDate>Tue, 08 Sep 2020 19:19:40 GMT</pubDate>
            <atom:updated>2020-09-08T22:02:31.646Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*vQIgn47t3Ss2lXm9ScBfUg.jpeg" /></figure><p>When using React to develop applications, you will use Components. There are currently two main types of components, Function and Class Components. Determining when to use which can be dependent on the versatility required of each of the application’s components.</p><p>Components are React’s tools for separating concerns in an application. To understand how React components are implemented, think of how a JavaScript function accepts parameters. React’s documentation describes how React components accept “props” and return React elements that show what should appear or be “rendered” on the screen.</p><p>The <strong>Function Component</strong> is a JavaScript function accepting “props” as the equivalent of a “parameter” in a JavaScript function. React uses JSX (a hybrid of JavaScript and HTML) to parse expressions in JavaScript(i.e. {props.name}). Function Components are the more potentially basic, factory model of a React component. Function components are sometimes referenced as “stateless components.”</p><p><strong>Function Component Example:</strong></p><p>function Welcome(props) {</p><p>return &lt;h1&gt;Hello, {props.name}&lt;/h1&gt;;</p><p>}</p><p>Source: <a href="https://reactjs.org/docs/components-and-props.html">React’s Official Documentation</a></p><p>The <strong>Class Component</strong> has the capacity to effect everything that a Function Component can render and more. In addition, Class Component is designed to accommodate tracking for “state” and “lifecycle” for each instance created. The state feature of Class Components is private and controlled by the component. State allows subordinated components, “child components,” to be updated locally without refreshing the page when events are effected on the page (i.e. in the form of user clicks). This is useful for accommodating user interaction with the page and for the code’s interaction with its environment (network, etc). Class Components allow timely execution of tasks that generic Function Components are not equipped to accommodate. Function Components may be converted to Class Components for the purposes of increasing the capacity of the component when necessary. The steps for converting a Function Component to Class Component are detailed in <a href="https://reactjs.org/docs/state-and-lifecycle.htm">React’s official documentation</a>.</p><p><strong>Class Component Example:</strong></p><p>class Welcome extends React.Component {</p><p>render() {</p><p>return &lt;h1&gt;Hello, {this.props.name}&lt;/h1&gt;;</p><p>}</p><p>}</p><p>Source: <a href="https://reactjs.org/docs/components-and-props.html">React’s Official Documentation</a></p><h3><strong>Making a Choice</strong></h3><p>When do you use Function Components and when do you use Class Components? Function Components will work fine when the component does not require state or lifecycle tracking. Class Components will accommodate state or lifecycle tracking. An advantage of Function Components is that they are less complex to read when future you and others revisit your code. When you’re beginning an application, it could be more efficient to start with Class Components. You may be wondering why complicate your components with what may be unnecessary functionality? There is generally less of a need for basic Function Components than there is for Class Components meaning that you will need the capacity offered by Class Components more often than not. You can always convert your Class Components to Function Components if needed.</p><p>React Hooks have expanded the capacity of Function Components to accommodate state and other functionalities; this provides another consideration as you determine which type of component best suits your project’s current needs.</p><p>Source: <a href="https://reactjs.org/docs/components-and-props.html">React’s Official Documentation</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e664e0314221" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pass by Value and Pass by Reference in JavaScript]]></title>
            <link>https://time-darden.medium.com/pass-by-value-and-pass-by-reference-in-javascript-aabd506cef2e?source=rss-eaf268418846------2</link>
            <guid isPermaLink="false">https://medium.com/p/aabd506cef2e</guid>
            <category><![CDATA[pass-by-reference]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[pass-by-value]]></category>
            <category><![CDATA[primitive-data-types]]></category>
            <category><![CDATA[code-newbie]]></category>
            <dc:creator><![CDATA[Time Darden]]></dc:creator>
            <pubDate>Thu, 20 Aug 2020 03:41:44 GMT</pubDate>
            <atom:updated>2020-08-20T18:33:05.893Z</atom:updated>
            <content:encoded><![CDATA[<p>For JavaScript beginners, it is often confusing to initially encounter the outcome when applying JavaScript’s equality operator to complex values.</p><p>To understand the difference in behaviors between primitive data types and complex values, as it relates to Passing by Value and Passing by Reference, we need to be clear on two general categories of values in JavaScript, primitive and complex.</p><p><strong>JavaScript has primitive data types and complex values</strong>:</p><p>Primitive data types include:</p><p>1) String: ‘string’</p><p>2) Number/Integer: 1, 2, 3</p><p>3) Boolean: true or false</p><p>4) Undefined: value not yet assigned</p><p>5) Null: no value</p><p><strong>Complex values are created from primitive data types and include</strong>:</p><p>1) Objects, which include Arrays: [1, 2, 3]</p><p>2) Functions</p><p>The equality operator in JavaScript is expressed as “===”; this makes a strict comparison for “truthiness” in equality for the values on either side of the equality operator (i.e. 1 === 1). When the equality operator is applied to equal primitive values, the outcome is intuitive. For instance: 1 === 1 will be TRUE. However, when two seemingly equal arrays are compared, the outcome is surprising to most. For instance: [1, 2, 3] === [1, 2, 3] will result in FALSE. Why is this when the arrays appear to be identical?</p><p>The application of the equality operator in JavaScript produces different outcomes for primitive and complex values because the identical appearance is superficial when it comes to complex data. For primitive values, JavaScript compares them by VALUE and if they are equivalent, the outcome is true. For complex values, JavaScript compares by REFERENCE, not by value.</p><p><strong>Primitive Values and Variable Assignment: Pass by Value</strong></p><p>When you assign a primitive value to a variable, the variable “stores” a copy of that value.</p><p><em>let</em> once = 5 // the variable “once” stores the value 5</p><p><em>let</em> twice = 5 // “twice” is assigned a value of 5 as well</p><p>once === twice is <strong>true</strong></p><p>Try copy/pasting the following into your Chrome console to confirm the outcome:</p><p><em>let</em> once = 5</p><p><em>let</em> twice = 5</p><p>once === twice</p><p>This is an example of Passing by Value in determining equivalency. JavaScript examined the values of each primitive data instance and determined them equal.</p><p><strong>Complex Values and Variable Assignment: Pass by Reference</strong></p><p>When you assign a complex value, such as an array, to a variable, there is a reference associated with that array.</p><p>For instance:</p><p><em>let</em> arrayOnce = [1, 2, 3]</p><p><em>let</em> arrayTwice = [1, 2, 3]</p><p>They’re the same, right? While they may appear to be the same, there is a memory <strong>reference</strong> assigned to each array which will result in JavaScript declaring the comparison as false.</p><p>arrayOnce === arrayTwice will result in<strong> false</strong></p><p>Try copy/pasting the following into your Chrome console to confirm the outcome:</p><p>let arrayOnce = [1, 2, 3]</p><p>let arrayTwice = [1, 2, 3]</p><p>arrayOnce === arrayTwice</p><p>This is an example of Passing by Reference in determining equivalency. JavaScript examined the values of each array, a complex data type, and determined them to be unequal.</p><p>What is the meaning of this? The superficial equality belies the underlying data that JavaScript is calculating when it assesses the comparison of complex data. To solidify the concept, imagine a pair of identical twins:</p><figure><img alt="Photo of a set of twins, Tia and Tamera Mowry" src="https://cdn-images-1.medium.com/max/474/1*4ZmW64_CCXPVk5ckc-dlGw.jpeg" /></figure><p>Identical twins are human clones, they share parents, DNA and often have largely indistinguishable physical appearance. Are twins mathematically equivalent with all these similarities? No. Twins are individuals with different names, identification numbers, personalities, strengths and talents. The “identical” label refers to many aspects of these individuals, but it is not all-encompassing. Just as it is with twins, two sets of arrays holding the same sequential values are not identical upon further inspection. Complex values are stored in JavaScript and assigned a reference which matters to JavaScript when assessing equality. Just as a twin cannot produce the other twin’s identification interchangeably, two arrays with superficially identical content are not the same. Identical does not mean strictly equal when it comes to comparing complex data types in JavaScript.</p><p>Here’s a video which will help to visualize the material differences in clones as it relates to location in memory despite being identical:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F5djpcIOoiJU%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D5djpcIOoiJU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F5djpcIOoiJU%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/a432d5df0252a0574f6c0f96f8ab88c5/href">https://medium.com/media/a432d5df0252a0574f6c0f96f8ab88c5/href</a></iframe><p>References:</p><p><a href="https://stackoverflow.com/questions/6605640/javascript-by-reference-vs-by-value">https://stackoverflow.com/questions/6605640/javascript-by-reference-vs-by-value</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aabd506cef2e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>