<?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 Taran Arora on Medium]]></title>
        <description><![CDATA[Stories by Taran Arora on Medium]]></description>
        <link>https://medium.com/@itstaranarora?source=rss-e8c750bec508------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6b4F-fZQeGhyO5GNM39Erg.jpeg</url>
            <title>Stories by Taran Arora on Medium</title>
            <link>https://medium.com/@itstaranarora?source=rss-e8c750bec508------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 01:20:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@itstaranarora/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[Var vs Let vs Const  in Javascript]]></title>
            <link>https://itstaranarora.medium.com/var-vs-let-vs-const-in-javascript-3f137dac57d6?source=rss-e8c750bec508------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f137dac57d6</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[es6]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Taran Arora]]></dc:creator>
            <pubDate>Sun, 28 Mar 2021 20:00:19 GMT</pubDate>
            <atom:updated>2021-03-28T20:00:19.440Z</atom:updated>
            <content:encoded><![CDATA[<h3>Var vs Let vs Const in Javascript</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5ZuYDTiWdJaQRgBDKO-XrA.png" /></figure><p>With ES6 there have been many useful additions to JavaScript like the <strong>Promises</strong>, <strong>async/await</strong>, <strong>ES6 destructuring</strong>, and more. let and const is one of those additions.</p><p>Today in this blog we will discuss the difference between var, let, and const in Javascript. So let&#39;s get started.</p><h3>let vs var in Javascript</h3><p>Before the ES6 javascript use var keyword which only has a global scope and has some drawbacks. with let, javascript added block-level scope.</p><p>Let&#39;s discuss the difference with some examples.</p><pre>// ES5 Code<br>var x = 10;<br>console.log(x) // 10</pre><pre>var x = &quot;Hello Reader&quot;<br>console.log(x) // Hello Reader</pre><pre>var x = 12.2<br>console.log(x) // 12.2</pre><p>As you can see above use have <strong>re-declared</strong> the variable x with var keyword multiple times.</p><p>with var keyword, we were able to <strong>re-declare</strong> a variable that had already been declared. This creates confusion when the code gets bigger. what if we already had a variable declared with the same name somewhere else and we’re re-declaring it without realizing it? Then we might override the variable value, causing some difficult to debug issues.</p><p>But when we use let in javascript, we will get an error when we try to re-declare a variable that has already been declared - which is a good thing.</p><pre>// ES6 Code<br>let x = 10;<br>console.log(x); // 10</pre><pre>let x = &quot;Hello Reader&quot;<br>// Uncaught SyntaxError: Identifier &#39;x&#39; has already been declared</pre><p>See Instead of what we can do, we can re-assigning a new value to the variable x. Take a look below</p><pre>// ES6 Code<br>let x= 10;<br>console.log(x); // 10<br><br>x = &quot;Hello Reader&quot;;<br>console.log(x); // Hello Reader</pre><p>Now take a look at below code</p><pre>// ES5 Code<br>var isValid = true;<br>if(isValid) {<br>  var number = 10;<br>  console.log(&#39;inside:&#39;, number); // inside: 10<br>}<br>console.log(&#39;outside:&#39;, number); // outside: 10</pre><p>As you can see above code. we have declared the number inside the if block but it is still accessible outside. This is because var has a global scope.</p><p>Now take a look at the below code.</p><pre>// ES6 Code<br>let isValid = true;<br>if(isValid) {<br>  let number = 10;<br>  console.log(&#39;inside:&#39;, number); // inside: 10<br>}<br><br>console.log(&#39;outside:&#39;, number); <br>// Uncaught ReferenceError: number is not defined</pre><p>As you see in the above code. when we use the let keyword we can only access the number variable inside the if block. This is because the let keyword has a block-level scope.</p><p>But what if we declare let outside the if block? Let see.</p><pre>// ES6 Code<br>let isValid = true;<br>let number = 10;<br>if(isValid) {<br>  console.log(&#39;inside:&#39;, number); // inside: 10<br>}<br><br>console.log(&#39;outside:&#39;, number); // 10</pre><p>As you can see we can access the number variable inside the if block. Block-level scope works like a hierarchy where we can access the variables in child blocks but not the parent block. If you want to learn more about block-level scope vs global scope I will highly recommend you to check <a href="https://www.youtube.com/watch?v=BNC6slYCj50&amp;list=PLlasXeu85E9cQ32gLCvAvr9vNaUccPVNP&amp;index=9">this</a> video from Namaste JavaScript by Akshay Saini.</p><h3>let vs const in Javascript</h3><p>The const keyword works exactly the same as the let keyword. It also has a block-level scope. then how they differ from each other? let&#39;s take a look</p><p>When we declare a variable as const, it&#39;s considered a constant variable whose value will never change.</p><p>Take a look at the below code</p><pre>// ES6 Code<br>let x = true;<br>x = &quot;Hello Reader&quot;;<br>console.log(x) // Hello Reader</pre><p>When we use let keyword to declare a variable we can, later on, assign a new value to the variable. but this is not possible with const.</p><pre>// ES6 Code<br>const x = true;<br>x = &quot;Hello; <br>// Uncaught TypeError: Assignment to constant variable.</pre><p>See, when we try to declare a new value to a variable declared as const we’ll get a <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError">TypeError</a>.</p><p>But this behavior of const is different when it comes to <strong>objects</strong> and <strong>arrays</strong>. while const object can’t be updated but its properties can be updated. This is because objects are <a href="https://javascript.info/reference-type"><strong>reference</strong></a> types in javascript.</p><p>Take a look at below code</p><pre>// ES6 Code<br>const person= {<br> name: &#39;Taran&#39;,<br> age: 18<br>};<br><br>person.age = 22;</pre><p>We can do this with objects.</p><pre>// ES6 Code<br>const person= {<br> name: &#39;Taran&#39;,<br> age: 18<br>};</pre><pre>person = {<br> firstName: &quot;Taran&quot;,<br> lastName: &quot;Arora&quot;<br>}</pre><p>but we can’t do this with objects declared as const</p><h3>var, let, and const wrap-up</h3><ol><li>The keywords let and const add block scoping in JavaScript.</li><li>var variables can be updated and re-declared within its scope</li><li>let variables can be updated but not re-declared const variables can neither be updated nor re-declared.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f137dac57d6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Video Chat App with Node.js + Socket.io + WebRTC]]></title>
            <link>https://levelup.gitconnected.com/building-a-video-chat-app-with-node-js-socket-io-webrtc-26f46b213017?source=rss-e8c750bec508------2</link>
            <guid isPermaLink="false">https://medium.com/p/26f46b213017</guid>
            <category><![CDATA[express]]></category>
            <category><![CDATA[socketio]]></category>
            <category><![CDATA[webrtc]]></category>
            <category><![CDATA[video-chat-app]]></category>
            <category><![CDATA[javascript-development]]></category>
            <dc:creator><![CDATA[Taran Arora]]></dc:creator>
            <pubDate>Tue, 23 Mar 2021 16:54:11 GMT</pubDate>
            <atom:updated>2022-04-14T02:26:27.720Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*P-qjOusuwU6pOlMz_o1sOA.png" /></figure><p>This tutorial will show you how to build a video chat app using JavaScript and NodeJS. It will also show you how to use PeerJS, WebRTC, and Socket.io.</p><blockquote><a href="https://video-chat-app-v1.herokuapp.com/"><strong>Click Here</strong></a><strong> to see live example of the app we’ll be building.</strong></blockquote><h3>Pre-Project Setup</h3><p>Here’s what you’ll need:</p><ul><li><strong>NodeJS: </strong>Visit the official <a href="https://nodejs.org/en/">Node.js website</a> to download and install Node.</li><li><strong>NPM: </strong>NPM program gets installed on your computer when you install Node.js.</li></ul><h3>Project Setup</h3><blockquote>All the code for this project can be found in the GitHub Repo</blockquote><ol><li>Create an empty directory named video-chat-app.</li><li>Open up your console, navigate to our new directory, and run npm init.</li><li>Fill out the required information to initialize our project.</li><li>Within video-chat-app the directory, and run npm install express ejs socket.io uuid peer. This will install all the dependency that we need to build this application.</li><li>And also as a dev dependency, we will install <a href="https://nodemon.io/">Nodemon</a>. runnpm install — dev nodemon. This will install nodemon as a dev dependency.</li><li>Create a file named server.js — this file will keep all our server-side logic</li></ol><p>Now that we have our project setup, we can start building!</p><h3>Creating our Server (with Express JS)</h3><p>The first thing we need to do is get our server up and running. We’re going to use Express to accomplish this. Express is a minimalist web framework for Node.js — Express makes it very easy to create and run a web server with Node.</p><p>Let’s create a boilerplate Express starter app file.</p><pre><strong>// server.js</strong><br>const express = require(“express”);<br>const app = express();<br>const server = require(“http”).Server(app);<br>app.get(“/”, (req, res) =&gt; {<br>    res.status(200).send(“Hello World”);<br>});<br>server.listen(3030);</pre><p>Now we have our server running, We can test our server by running:</p><pre>&gt; nodemon server.js</pre><p>Now open your browser and visit: localhost:3000 and you should see Hello World.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/955/1*UGnAuz5-tWAES9FneXudkw.png" /></figure><h3><strong>Creating our first View</strong></h3><p>Instead of responding with text when someone visits our root route, we’d like to respond with an HTML file. For this, we’ll be using EJS (Embedded JavaScript). EJS is a templating language.</p><p>In order to use EJS in Express, we need to set up our template engine. To setup add this line of code in server.js file.</p><pre>app.set(‘view engine’, ‘ejs’)</pre><p>EJS is accessed by default in the views directory. Now create a new folder named views in your directory. Within that views folder, add a file named room.ejs. Think of our room.ejs file as an HTML file for now.</p><p>Here’s what our file structure looks like so far:</p><pre>|-- video-chat-app<br>   |-- views<br>      |-- room.ejs<br>   |-- package.json<br>   |-- server.js</pre><p>Now we have our boilerplate forroom.ejsthe file. Now we will add our HTML code to room.ejs thefile.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b6e1b6bd512cbd5ae26ab243a1546186/href">https://medium.com/media/b6e1b6bd512cbd5ae26ab243a1546186/href</a></iframe><p>Once you copy the above code, we need to replace our app. js get code:</p><pre>app.get(‘/’, function (req, res) {<br> <strong>// OLD CODE</strong><br> res.status(200).send(&quot;Hello World&quot;);<br>})</pre><p>Above is the old code where we send the text ‘Hello World!’ to the client. Instead, we want to send our room.ejs file:</p><pre>app.get(‘/’, function (req, res) {<br> <strong>// NEW CODE</strong><br> res.render(‘room’);<br>})</pre><p>Now open your browser and visit: localhost:3030 and you should see our room.ejs file being displayed!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/1*ySTU2FNSm01vWCw0cITwRQ.png" /></figure><h3>Adding a CSS File</h3><p>This doesn&#39;t look good right? That is because we don&#39;t have any stylesheet files in our project. So let&#39;s add some CSS.</p><p>We’ll need to add a new folder to our project called public. Within that folder create a file named style.css and script.js. Here’s our new file structure:</p><pre>|-- weather-app<br>   |-- views<br>      |-- index.ejs<br>   |-- public<br>      |-- style.css<br>      |-- script.js<br>   |-- package.json<br>   |-- server.js</pre><p>Express won&#39;t allow access to this file by default, so we need to expose it with the following line of code:</p><pre>app.use(express.static(‘public’));</pre><p>This code allows us to access all of the static files within the ‘public’ folder.<br>Finally, we need our CSS. Since this isn’t a CSS course, I’m not going to be going over the specifics, but if you’d like to use my CSS, you can copy it from <a href="https://github.com/itstaranarora/video-chat-v1/blob/master/public/style.css"><strong>here</strong></a><strong>.</strong></p><p>Once you added CSS. you can visit: localhost:3030/ you will notice your application looks a little nicer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T584xjgBmBF6k-nQxPOs8g.png" /></figure><h3>Setting up our Rooms</h3><p>By now, your server.jsfile should look like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9ae6fc029c87da8665909e8beb12633b/href">https://medium.com/media/9ae6fc029c87da8665909e8beb12633b/href</a></iframe><p>We have one get route, and then we create our server. However, for our application to work, Whenever a new user visits our default route we will redirect him to a unique URL. We will use <a href="https://www.npmjs.com/package/uuid"><strong>uuid</strong></a> library to create a random unique URL for each room.</p><p>UUID is a javascript library that allows us to create unique Ids. In our application, we will use uuid version 4 to create our unique URL. But first let&#39;s import uuid in our server.js file.</p><pre>const { v4: uuidv4 } = require(&quot;uuid&quot;);</pre><p>Now, We will use <a href="https://www.npmjs.com/package/uuid">uui<em>d</em></a> library to create a random unique id for each room. and we will redirect our user to that room.</p><pre>app.get(“/”, (req, res) =&gt; {</pre><pre>    res.redirect(`/${uuidv4()}`);</pre><pre>});</pre><p>And Before we test this I also wanted to add a view for every unique room and we will pass the current URL to that view.</p><pre>app.get(“/:room”, (req, res) =&gt; {</pre><pre>    res.render(“room”, { roomId: req.param.room });</pre><pre>});</pre><p>We have passed<strong>roomId</strong> to room.ejs and with this we are done setting our Rooms. and now if you visit localhost:3030. you will be redirected to a unique URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ms28jO9bPGyOaIzXtfAIqg.png" /></figure><h3>Adding Current User Video</h3><p>We will work on our script.js file that we have created earlier. script.js will contain all our client-side code.</p><p>So here what we need to do, we need to get the video stream aka user media, and then we will add that stream to a video element.</p><pre>let myVideoStream;<br>const videoGrid = document.getElementById(&quot;video-grid&quot;);<br>const myVideo = document.createElement(&quot;video&quot;);<br>myVideo.muted = true;<br>navigator.mediaDevices.getUserMedia({<br>    audio: true,<br>    video: true,<br>})<br>.then((stream) =&gt; {<br>    myVideoStream = stream;<br>    addVideoStream(myVideo, stream);<br>});</pre><p>Now we will create addVideoStream function. which will add the stream to the video element.</p><pre>const addVideoStream = (video, stream) =&gt; {<br>    video.srcObject = stream;<br>    video.addEventListener(&quot;loadedmetadata&quot;, () =&gt; {<br>       video.play();<br>       videoGrid.append(video);<br>    });<br>};</pre><p>This code will add a user stream to the video element. you can test this by visiting localhost:3030 and you will see your video popup in the video element</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jh39fZT5DhVweXLJsYNymA.png" /></figure><h3><strong>5. Adding the ability to allow others to stream their video</strong></h3><p>Now it’s time to use Socket.io and PeerJS. For those who don’t know Socket.io allows us to do real-time communication. and PeerJS allow us to implement WebRTC.</p><p>First, we will import socket.io and peerjs in our server.js file and listen for join-room event.</p><pre>// <strong>server.js</strong></pre><pre>const express = require(“express”);</pre><pre>const app = express();</pre><pre>const server = require(“http”).Server(app);</pre><pre>const { v4: uuidv4 } = require(“uuid”);</pre><pre>app.set(“view engine”, “ejs”);</pre><pre>const io = require(“socket.io”)(server);</pre><pre>const { ExpressPeerServer } = require(“peer”);</pre><pre>const peerServer = ExpressPeerServer(server, {</pre><pre>debug: true,</pre><pre>});</pre><pre>app.use(“/peerjs”, peerServer);</pre><pre>app.use(express.static(“public”));</pre><pre>app.get(“/”, (req, res) =&gt; {</pre><pre>res.redirect(`/${uuidv4()}`);</pre><pre>});</pre><pre>app.get(“/:room”, (req, res) =&gt; {</pre><pre>res.render(“room”, { roomId: req.param.room });</pre><pre>});</pre><pre>io.on(“connection”, (socket) =&gt; {</pre><pre>socket.on(“join-room”, (roomId, userId) =&gt; {</pre><pre>socket.join(roomId);</pre><pre>socket.to(roomId).broadcast.emit(“user-connected”, userId);</pre><pre>});</pre><pre>});</pre><pre>server.listen(3030);</pre><p>Now, We have our server actively listening for a join room event. Next, we will set up our script.js.</p><pre>// <strong>public/script.js</strong></pre><pre>const socket = io(“/”);</pre><pre>const videoGrid = document.getElementById(“video-grid”);</pre><pre>const myVideo = document.createElement(“video”);</pre><pre>myVideo.muted = true;</pre><pre>var peer = new Peer(undefined, {</pre><pre>path: “/peerjs”,</pre><pre>host: “/”,</pre><pre>port: “3030”,</pre><pre>});</pre><pre>let myVideoStream;</pre><pre>navigator.mediaDevices</pre><pre>.getUserMedia({</pre><pre>audio: true,</pre><pre>video: true,</pre><pre>})</pre><pre>.then((stream) =&gt; {</pre><pre>myVideoStream = stream;</pre><pre>addVideoStream(myVideo, stream);</pre><pre>peer.on(“call”, (call) =&gt; {</pre><pre>call.answer(stream);</pre><pre>const video = document.createElement(“video”);</pre><pre>call.on(“stream”, (userVideoStream) =&gt; {</pre><pre>addVideoStream(video, userVideoStream);</pre><pre>});</pre><pre>});</pre><pre>socket.on(“user-connected”, (userId) =&gt; {</pre><pre>connectToNewUser(userId, stream);</pre><pre>});</pre><pre>});</pre><pre>const connectToNewUser = (userId, stream) =&gt; {</pre><pre>const call = peer.call(userId, stream);</pre><pre>const video = document.createElement(“video”);</pre><pre>call.on(“stream”, (userVideoStream) =&gt; {</pre><pre>addVideoStream(video, userVideoStream);</pre><pre>});</pre><pre>};</pre><pre>peer.on(“open”, (id) =&gt; {</pre><pre>socket.emit(“join-room”, ROOM_ID, id);</pre><pre>});</pre><pre>const addVideoStream = (video, stream) =&gt; {</pre><pre>video.srcObject = stream;</pre><pre>video.addEventListener(“loadedmetadata”, () =&gt; {</pre><pre>video.play();</pre><pre>videoGrid.append(video);</pre><pre>});</pre><pre>};</pre><p>Now if a new user joins the room we will see their video.</p><h3><strong>6. Building User Interface</strong></h3><p>We are done with our video part. Now let’s do some styling. but first, let’s add some content to <strong>room.ejs</strong> file. (Add font awesome CDN inside your head tag)</p><pre>// <strong>views/room.ejs</strong></pre><pre>&lt;body&gt;</pre><pre>  &lt;div class=&quot;header&quot;&gt;</pre><pre>    &lt;div class=&quot;logo&quot;&gt;</pre><pre>      &lt;h3&gt;Video Chat&lt;/h2&gt;</pre><pre>    &lt;/div&gt;</pre><pre>  &lt;/div&gt;</pre><pre>  &lt;div class=&quot;main&quot;&gt;</pre><pre>    &lt;div class=&quot;main__left&quot;&gt;</pre><pre>      &lt;div class=&quot;videos__group&quot;&gt;</pre><pre>        &lt;div id=&quot;video-grid&quot;&gt;&lt;/div&gt;</pre><pre>      &lt;/div&gt;</pre><pre>      &lt;div class=&quot;options&quot;&gt;</pre><pre>        &lt;div class=&quot;options__left&quot;&gt;</pre><pre>          &lt;div class=&quot;options__button&quot;&gt;</pre><pre>            &lt;i class=&quot;fa fa-video-camera&quot; aria-hidden=&quot;true&quot;&gt;&lt;/i&gt;</pre><pre>          &lt;/div&gt;</pre><pre>        &lt;div class=&quot;options__button&quot;&gt;</pre><pre>            &lt;i class=&quot;fa fa-microphone&quot; aria-hidden=&quot;true&quot;&gt;&lt;/i&gt;</pre><pre>        &lt;/div&gt;</pre><pre>       &lt;/div&gt;</pre><pre>       &lt;div class=&quot;options__right&quot;&gt;</pre><pre>         &lt;div class=&quot;options__button background__red&quot;&gt;</pre><pre>           &lt;i class=&quot;fa fa-phone&quot; aria-hidden=&quot;true&quot;&gt;&lt;/i&gt;</pre><pre>         &lt;/div&gt;</pre><pre>       &lt;/div&gt;</pre><pre>     &lt;/div&gt;</pre><pre>    &lt;/div&gt;</pre><pre>    &lt;div class=&quot;main__right&quot;&gt;</pre><pre>      &lt;div class=&quot;main__chat_window&quot;&gt;</pre><pre>        &lt;ul class=&quot;messages&quot;&gt;&lt;/ul&gt;</pre><pre>     &lt;/div&gt;</pre><pre>     &lt;div class=&quot;main__message_container&quot;&gt;</pre><pre>       &lt;input id=&quot;chat_message&quot; type=&quot;text&quot; placeholder=&quot;Type message here...&quot;&gt;</pre><pre>       &lt;div class=&quot;options__button&quot;&gt;</pre><pre>         &lt;i class=&quot;fa fa-plus&quot; aria-hidden=&quot;true&quot;&gt;&lt;/i&gt;</pre><pre>       &lt;/div&gt;</pre><pre>     &lt;/div&gt;</pre><pre>    &lt;/div&gt;</pre><pre>  &lt;/div&gt;</pre><pre>&lt;/body&gt;</pre><p>Next, Lets’s Open our style.css file add some CSS.</p><pre>@import url(https://medium.com/%E2%80%9Chttps://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&amp;display=swap&quot;);</pre><pre>:root {</pre><pre>— main-darklg: #1d2635;</pre><pre>— main-dark: #161d29;</pre><pre>— primary-color: #2f80ec;</pre><pre>— main-light: #eeeeee;</pre><pre>font-family: “Poppins”, sans-serif;</pre><pre>}</pre><pre>* {</pre><pre>margin: 0;</pre><pre>padding: 0;</pre><pre>}</pre><pre>.header {</pre><pre>display: flex;</pre><pre>justify-content: center;</pre><pre>align-items: center;</pre><pre>height: 8vh;</pre><pre>width: 100%;</pre><pre>background-color: var( — main-darklg);</pre><pre>}</pre><pre>.logo &gt; h3 {</pre><pre>color: var( — main-light);</pre><pre>}</pre><pre>.main {</pre><pre>overflow: hidden;</pre><pre>height: 92vh;</pre><pre>display: flex;</pre><pre>}</pre><pre>.main__left {</pre><pre>flex: 0.7;</pre><pre>display: flex;</pre><pre>flex-direction: column;</pre><pre>}</pre><pre>.videos__group {</pre><pre>flex-grow: 1;</pre><pre>display: flex;</pre><pre>justify-content: center;</pre><pre>align-items: center;</pre><pre>padding: 1rem;</pre><pre>background-color: var( — main-dark);</pre><pre>}</pre><pre>video {</pre><pre>height: 300px;</pre><pre>border-radius: 1rem;</pre><pre>margin: 0.5rem;</pre><pre>width: 400px;</pre><pre>object-fit: cover;</pre><pre>transform: rotateY(180deg);</pre><pre>-webkit-transform: rotateY(180deg);</pre><pre>-moz-transform: rotateY(180deg);</pre><pre>}</pre><pre>.options {</pre><pre>padding: 1rem;</pre><pre>display: flex;</pre><pre>background-color: var( — main-darklg);</pre><pre>}</pre><pre>.options__left {</pre><pre>display: flex;</pre><pre>}</pre><pre>.options__right {</pre><pre>margin-left: auto;</pre><pre>}</pre><pre>.options__button {</pre><pre>display: flex;</pre><pre>justify-content: center;</pre><pre>align-items: center;</pre><pre>background-color: var( — primary-color);</pre><pre>height: 50px;</pre><pre>border-radius: 5px;</pre><pre>color: var( — main-light);</pre><pre>font-size: 1.2rem;</pre><pre>width: 50px;</pre><pre>margin: 0 0.5rem;</pre><pre>}</pre><pre>.background__red {</pre><pre>background-color: #f6484a;</pre><pre>}</pre><pre>.main__right {</pre><pre>flex: 0.3;</pre><pre>background-color: #242f41;</pre><pre>}</pre><pre>.main__chat_window {</pre><pre>flex-grow: 1;</pre><pre>}</pre><pre>.main__message_container {</pre><pre>padding: 1rem;</pre><pre>display: flex;</pre><pre>align-items: center;</pre><pre>justify-content: center;</pre><pre>}</pre><pre>.main__message_container &gt; input {</pre><pre>height: 50px;</pre><pre>flex: 1;</pre><pre>border-radius: 5px;</pre><pre>padding-left: 20px;</pre><pre>border: none;</pre><pre>}</pre><pre>#video-grid {</pre><pre>display: flex;</pre><pre>justify-content: center;</pre><pre>flex-wrap: wrap;</pre><pre>}</pre><p>That’s it! Congrats, you have made your video chat app successfully. Now you can deploy it to <a href="https://www.heroku.com/">Heroku </a>and show it to the world.</p><p>Live Demo: <a href="https://video-chat-app-v1.herokuapp.com/a2ad563c-37c3-484b-a763-38546b11c922">https://video-chat-app-v1.herokuapp.com/</a></p><p>Source Code: <a href="https://github.com/itstaranarora/video-chat-v1">https://github.com/itstaranarora/video-chat-v1</a></p><p>Do follow me on <a href="https://www.linkedin.com/in/taran-arora/">LinkedIn</a> and <a href="https://github.com/itstaranarora">Github</a> if you find this post useful</p><h3>Level Up Coding</h3><p>Thanks for being a part of our community! Level Up is transforming tech recruiting. <a href="https://jobs.levelup.dev/talent"><strong>Find your perfect job</strong></a><strong> at the best companies</strong>.</p><p><a href="https://jobs.levelup.dev/talent">Empowering Great Companies To Scale Great Teams</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=26f46b213017" width="1" height="1" alt=""><hr><p><a href="https://levelup.gitconnected.com/building-a-video-chat-app-with-node-js-socket-io-webrtc-26f46b213017">Building a Video Chat App with Node.js + Socket.io + WebRTC</a> was originally published in <a href="https://levelup.gitconnected.com/">Level Up Coding</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Algorithms in Programming]]></title>
            <link>https://medium.datadriveninvestor.com/algorithms-in-programming-8a66a5abb08e?source=rss-e8c750bec508------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a66a5abb08e</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[bca-course]]></category>
            <category><![CDATA[data-structures]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Taran Arora]]></dc:creator>
            <pubDate>Tue, 05 Nov 2019 17:05:08 GMT</pubDate>
            <atom:updated>2019-11-16T09:13:07.320Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/0*TDgnPm06sS0np--2.jpg" /></figure><p>To make a computer to do anything. We write programs. To write a program, we have to tell the computer step by step what we want to do. Then the computer “executes” the program step by step to give us the output.</p><p>When we are telling the computer what to do, we also tell computers how to do it. this is where the role of computer <strong>algorithms</strong> comes in play. an algorithm is a basic technique that we use to tell the computers how to do things. To understand the concept of algorithm lets discuss an example.</p><p><a href="https://www.datadriveninvestor.com/2019/03/25/a-programmers-guide-to-creating-an-eclectic-bookshelf/">A Programmer&#39;s Guide to Creating an Eclectic Bookshelf | Data Driven Investor</a></p><p>Let’s say I have to travel from my home to college there are three different algorithms I can use to reach my destination:</p><p><strong>The Uber algorithm:</strong></p><ol><li>Book a cab.</li><li>Wait for the cab to arrive.</li><li>Get in the cab and give the driver the address.</li></ol><p><strong>The Bus algorithm:</strong></p><ol><li>Reach the bus stop on time.</li><li>Catch the college bus.</li><li>Get off when reached</li></ol><p><strong>The Car algorithm:</strong></p><ol><li>Get in the car.</li><li>Drive the car to the college.</li></ol><p>As you can see, all these algorithms accomplish exactly the same goal, but each algorithm does it in a completely different way. Each algorithm also has a different cost and travel time. using uber for example is the fastest and most convenient way but it is also the most expensive way. Taking a bus is less expansive but you need to be on time in order to catch the bus and it is also slower if you compared it to other algorithms. Driving your own car saves you both time and money but in order to use this option, you need to buy a car first. we choose algorithms based upon the circumstances.</p><p>In computer programming, there are many different ways/algorithms to do a given task. Every algorithm has its own advantages and disadvantages in different situations. Some algorithm runs faster but they take more space in memory others runs slower but they take less space. some work best when the number of inputs is less other works best when the number of inputs is more. By knowing the advantages and disadvantages of different algorithm you can select the best one for the task in hand.</p><h3>Properties of Algorithms</h3><ol><li><strong>Input</strong> -An algorithm has input values from a specified set.</li><li><strong>Output</strong> -From each set of input values, an algorithm produces output values from a specified set. The output values are the solution to the problem.</li><li><strong>Definiteness</strong> -The steps of an algorithm must be defined precisely.</li><li><strong>Correctness </strong>-An algorithm should produce the correct output values for each set of input values.</li><li><strong>Finiteness </strong>-An algorithm should produce the desired output after a finite (but perhaps large) number of steps for any input in the set.</li><li><strong>Effectiveness </strong>-It must be possible to perform each step of an algorithm exactly and in a finite amount of time.</li><li><strong>Generality </strong>-The procedure should be applicable for all problems of the desired form, not just for a particular set of input values</li></ol><h3><strong>Algorithms that every Programmer must know about:</strong></h3><p>Here is the list of algorithms that are most commonly used by programmers during there day to day life.</p><h3>1. Sorting Algorithms</h3><p>Sorting algorithms are the most asked question in programming interviews. So if you are looking to enter into the programming world to make some bucks. you need to learn about sorting algorithms. The idea behind <strong>Sorting algorithms</strong> is to arrange the items in a list/array in a specific order. In major programming languages, there are in-build sorting libraries. which you can use to make your work easier. There’s not really a reason for implementing your own sorting algorithm from scratch for a production application, However, while learning them you will discover advanced features of a programming language. which will give you an edge as a developer. in addition to this, sorting algorithms help you understand program accuracy and speed. For example, if you use the <a href="https://www.geeksforgeeks.org/bubble-sort/"><strong>Bubble sort</strong></a> algorithm to sort a list of 3,00,000 integers it will take around 9 minutes to complete however if you use <a href="https://www.geeksforgeeks.org/quick-sort/"><strong>Quicksort</strong></a> it will give you results within a few seconds. this type of performance variants you will only able to understand if you truly understand sorting algorithms.</p><p><strong>Here are a few sorting algorithms which you may want to learn:</strong></p><ul><li><a href="https://www.geeksforgeeks.org/selection-sort/">Selection Sort</a></li><li><a href="https://www.geeksforgeeks.org/bubble-sort/">Bubble Sort</a></li><li><a href="https://www.geeksforgeeks.org/insertion-sort/">Insertion Sort</a></li><li><a href="https://www.geeksforgeeks.org/merge-sort/">Merge Sort</a></li><li><a href="https://www.geeksforgeeks.org/quick-sort/">Quick Sort</a></li><li><a href="https://www.geeksforgeeks.org/heap-sort/">Heap Sort</a></li></ul><p>It is important that you should know when and where to use which sorting algorithm. Some of the real-world application of sorting algorithms includes:</p><ol><li>Sorting in excel sheets or Sort by price in e-commerce websites.</li><li>Sorting by scores in board exams.</li></ol><h3>2. Searching Algorithms</h3><p>Search algorithms form an important part of many programs. Some searches involve looking for an entry in a database, such as looking up your record in the Government database. Although programmers can choose from numerous search types, they select the algorithm that best matches the size and structure of the database to provide a user-friendly experience.</p><p>The general searching problem looks like: Locate an element x in a list of elements a1,a2,...an. The solution to this search problem is the location of the term in the list that equals x and is 0 if x is not in the list.</p><p><strong>Here are a few searching algorithms which you may want to learn:</strong></p><ul><li><a href="https://www.geeksforgeeks.org/linear-search/">Linear Search</a></li><li><a href="https://www.geeksforgeeks.org/binary-search/">Binary Search</a></li><li><a href="https://www.geeksforgeeks.org/jump-search/">Jump Search</a></li><li><a href="https://www.geeksforgeeks.org/fibonacci-search/">Fibonacci Search</a></li><li><a href="https://www.geeksforgeeks.org/exponential-search/">Exponential Search</a></li></ul><p>I hope this article helps you learn one or two things about Algorithms.</p><p>Thanks for reading! Happy Learning : )</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fb2a0d6%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2Fb2a0d6%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href">https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a66a5abb08e" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/algorithms-in-programming-8a66a5abb08e">Algorithms in Programming</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Machine Learning For Newbies!]]></title>
            <link>https://itstaranarora.medium.com/machine-learning-for-newbies-a93b3b5174c6?source=rss-e8c750bec508------2</link>
            <guid isPermaLink="false">https://medium.com/p/a93b3b5174c6</guid>
            <category><![CDATA[unsupervised-learning]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[supervised-learning]]></category>
            <dc:creator><![CDATA[Taran Arora]]></dc:creator>
            <pubDate>Fri, 12 Jul 2019 17:56:20 GMT</pubDate>
            <atom:updated>2019-07-12T17:56:20.382Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*tS0xI4eG8uDUszTvuiBvBg.gif" /></figure><p>Have you heard a lot about machine learning but only have a fuzzy idea of what that means? Then don’t worry you are not alone. there are a lot of people who tried reading about machine learning got frustrated and gave up wishing someone would just give them a simple and a quick explanation. That’s what this is.</p><h3>What is Machine Learning?</h3><p>We define machine learning as a field of study that gives computers the ability to learn without being explicitly learned. you can think of machine learning that there is an algorithm that can tell you something interesting about a set of data without you having to write any code specific to the problem. Instead of writing code, you feed data to the algorithm and it builds its own logic based on the data.</p><p>For example, let&#39;s say there is a <strong>classification algorithm</strong>. which can put data into different categories. you can use that same algorithm to classify recognize handwritten numbers could also be used to classify emails into spam or not-spam without changing any line of code. It is the same algorithm but you fed it with different data so it comes up different logic.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*YXiclXZdJQVJZ0tQHCv5zw.png" /></figure><p>Similarly, you can use the same classification algorithm for a lot of different problems. such algorithms are everywhere. you’ve probably used a learning algorithm dozens of times a day without knowing it.</p><p>Every time you use a web search engine like google or bing to search something on the internet. one of the reasons it works so well is because of a learning algorithm implemented by Google or Microsoft learned how to rank web pages.</p><p>Every time you use facebook or google photos. It recognizes you and your’s friends photos. Is also because of machine learning.</p><p><strong>Machine Learning</strong> is an umbrella term covering lots of these kinds of generic algorithms.</p><h3>Two types of Machine Learning Algorithm</h3><p>Most machine learning algorithm fell into one of two main categories. <strong>supervised learning</strong> and <strong>unsupervised learning</strong>.</p><h3><strong>Supervised Learning</strong></h3><p>In Supervised learning, we are given a data-set and we already know what a correct output looks like. the task of a supervised learning algorithm is to learn a function that map input to an output based on example input-output pairs. Supervised learning is classified into two types of algorithms “regression” and “classification” algorithm. In a <strong>Regression problem</strong>, we are trying to predict result within a continuous output. let say you are given a picture of a person and you have to predict the age of that person based upon the picture Such type of problems is called regression problems where we are trying to map the input variable into some continuous function. In a <strong>Classification problem</strong>, we are trying to predict the result in discrete categories. suppose you have a picture of an animal and you have to classify if it is a dog or not.</p><h3>Unsupervised learning</h3><p>Unsupervised learning is completely different from supervised learning. With unsupervised learning, we can solve a problem where we don’t have any idea about the output that we want. we just throw out dataset into an algorithm and then we let the algorithm find the relationship among the variables in the data. For <strong>instance, </strong>suppose you have a picture which contains dogs and cats in it that algorithm has not seen ever. Thus the algorithm has no idea about the features of dogs and cat so we can’t categorize it in dogs and cats. But it can categorize them according to their similarities, patterns, and differences. in other words, we can easily categorize the picture into two parts. The first part may contain all pics having <strong>dogs</strong> in it and the second part may contain all pics having <strong>cats</strong> in it.</p><p>Unsupervised learning classified into two categories of algorithms:</p><ul><li><strong>Clustering</strong>: A clustering problem is where you want to discover the inherent groupings in the data, such as grouping customers by purchasing behavior.</li><li><strong>Association</strong>: An association rule learning problem is where you want to discover rules that describe large portions of your data, such as people that buy X also tend to buy Y.</li></ul><p>I Hope this article help you learn one or two things about machine learning. if you want to learn more about machine learning. I highly recommend you read <a href="https://medium.com/@ageitgey/machine-learning-is-fun-80ea3ec3c471">this guide</a> from <a href="https://medium.com/@ageitgey">Adam Geitgey</a>. If you are looking for a course to dig deeper into machine learning then try <a href="https://www.coursera.org/learn/machine-learning">Andrew ng machine learning course</a>. It is the highest rated machine learning course on the internet.</p><p>Thanks for reading! happy learning : )</p><p><strong>References:</strong></p><p><a href="https://www.geeksforgeeks.org/supervised-unsupervised-learning/">https://www.geeksforgeeks.org/supervised-unsupervised-learning/</a></p><p><a href="https://medium.com/@ageitgey/machine-learning-is-fun-80ea3ec3c471">https://medium.com/@ageitgey/machine-learning-is-fun-80ea3ec3c471</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a93b3b5174c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavasScript30- Day 10]]></title>
            <link>https://itstaranarora.medium.com/javasscript30-day-10-e7b1f4e114f8?source=rss-e8c750bec508------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7b1f4e114f8</guid>
            <dc:creator><![CDATA[Taran Arora]]></dc:creator>
            <pubDate>Tue, 25 Jun 2019 17:14:05 GMT</pubDate>
            <atom:updated>2019-06-25T17:14:05.837Z</atom:updated>
            <content:encoded><![CDATA[<p>We’re given an HTML page that displays a collection of input HTML elements of type checkbox, each followed by a p HTML element that will have it&#39;s text contents striked through when input is checked. Write the necessary JavaScript code to allow a user to select multiple items while holding down the shift key.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X0M4j3NGo5RfPArsGkmRuw.jpeg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7b1f4e114f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript30 - Day 9]]></title>
            <link>https://itstaranarora.medium.com/javascript30-day-9-45a36c3f0e73?source=rss-e8c750bec508------2</link>
            <guid isPermaLink="false">https://medium.com/p/45a36c3f0e73</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[javascript-tips]]></category>
            <dc:creator><![CDATA[Taran Arora]]></dc:creator>
            <pubDate>Tue, 25 Jun 2019 17:09:35 GMT</pubDate>
            <atom:updated>2019-06-25T17:09:35.405Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6ze9GCK7h6S3eiTP_WKetA.png" /></figure><h3>Day 9: Dev Tool Tools Domination</h3><p>This is a simple dev tools exercise. We’ll explore how to set <em>breakpoints</em> in the browser debugger, and learn about various console methods that allow us to be more specific about the event being logged out (is it a warning, an error, a collection of data, etc.).</p><p>You can check my index.html file at<a href="https://github.com/itstaranarora/javascript30-challenge/tree/master/Day%209%20-%20Dev%20Tools"> Github</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45a36c3f0e73" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript - Day 8]]></title>
            <link>https://itstaranarora.medium.com/javascript-day-8-843666e52927?source=rss-e8c750bec508------2</link>
            <guid isPermaLink="false">https://medium.com/p/843666e52927</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Taran Arora]]></dc:creator>
            <pubDate>Sat, 22 Jun 2019 09:36:33 GMT</pubDate>
            <atom:updated>2019-06-22T09:36:33.190Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3EzmnE0oTsNqzuTR0svNyA.jpeg" /></figure><h3>Day 8: HTML5 Canvas</h3><p>Canvas is a html5 feature which let the user draw thing on their web browser. normally we have 2 types of HTML canvas 2D and 3D. on day 8 I learned about the 2D canvas. I learned about different functions related to canvas such as getContent, stroke, etc.</p><h3>What did I learn?</h3><p>I learned about 2D canvas before this tutorial I don’t even know it exists in HTML. Learned about &lt;canvas&gt; tag in HTML and some javascript functions related to it. and I learned about mousemove event listener.</p><p>You can check my work at <a href="https://github.com/itstaranarora/javascript30-challenge/tree/master/Day%208%20-%20HTML5%20Canvas">Github</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=843666e52927" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript3 - Day 7]]></title>
            <link>https://itstaranarora.medium.com/javascript3-day-7-55bbab0f9429?source=rss-e8c750bec508------2</link>
            <guid isPermaLink="false">https://medium.com/p/55bbab0f9429</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Taran Arora]]></dc:creator>
            <pubDate>Wed, 12 Jun 2019 10:11:15 GMT</pubDate>
            <atom:updated>2019-06-12T10:12:50.410Z</atom:updated>
            <content:encoded><![CDATA[<h3>JavaScript30 - Day 7</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jNvjMpQryw-HkV5ajfQ45A.jpeg" /></figure><h3>Day 7: Array Cardio Day 2</h3><p>Day 7 was again an array cardio day. like in day 3 instead of building an app we practice array function. This time we used <strong>find()</strong>,<strong> Some()</strong>, and <strong>Every()</strong> function. I find every one of them very useful.</p><p><strong>Some(): </strong>The <strong>some</strong>() method executes the <strong>function</strong> once for each element present in the array: If it finds an array element where the <strong>function</strong> returns a true value, <strong>some</strong>() returns true (and does not check the remaining values)</p><p><strong>Every():</strong> The <strong>every</strong>() method executes the <strong>function</strong> once for each element present in the array: If it finds an array element where the <strong>function</strong> returns a false value, <strong>every</strong>() returns false (and does not check the remaining values)</p><p><strong>Find():</strong> If it finds an array element where the <strong>function</strong> returns a true value, <strong>find</strong>() returns the value of that array element</p><p>you can check my work on <a href="https://github.com/itstaranarora/javascript30-challenge/tree/master/Day%207%20-%20Array%20Cardio%202">GitHub</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55bbab0f9429" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScript30 — Day 6]]></title>
            <link>https://itstaranarora.medium.com/javascript30-day-6-bee1a19c268?source=rss-e8c750bec508------2</link>
            <guid isPermaLink="false">https://medium.com/p/bee1a19c268</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Taran Arora]]></dc:creator>
            <pubDate>Wed, 12 Jun 2019 09:20:19 GMT</pubDate>
            <atom:updated>2019-06-12T09:20:19.690Z</atom:updated>
            <content:encoded><![CDATA[<h3>JavaScript30 — Day 6</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QQEw66QZDW_byy3NQaHB3Q.jpeg" /></figure><h3>Day 6: Type Ahead</h3><p>On day 6. We build a search engine which searches through every state and city in the US and gives its population size. It works in real time and provides results as user type something into the search bar. We use a JSON file to get states and city data and we use JavaScript to collect input from the user and update CSS</p><h3>What did I learn?</h3><p>I learned how to work with JSON file in JavaScript. And I get to know about Fetch API which is present in every browser.</p><p>You can check my work on <a href="https://github.com/itstaranarora/javascript30-challenge/tree/master/Day%206%20-%20Type%20Ahead">Github</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bee1a19c268" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JavaScirpt30 - Day 5]]></title>
            <link>https://itstaranarora.medium.com/javascirpt30-day-5-2fd433a6f3ec?source=rss-e8c750bec508------2</link>
            <guid isPermaLink="false">https://medium.com/p/2fd433a6f3ec</guid>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[Taran Arora]]></dc:creator>
            <pubDate>Sun, 09 Jun 2019 09:12:18 GMT</pubDate>
            <atom:updated>2019-06-09T09:12:18.093Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CSY83QLDFTepwbK2Dsxebw.jpeg" /></figure><h3>Day 5: Flex Panels</h3><p>On Day 5, We learn how to make flex panels. Flex panels are a very good way to display product on a website. They are attractive and good looking. We build Flex panels purely using CSS and a little bit of JavaScript.</p><h3>What did I learn?</h3><p>I learned about flex panels. and how we can put them on a website. I also learned about toggle function and checkList in JavaScript. And I also got a little bit more comfortable with Eventlisteners in JavaScript.</p><p>You can check my work on <a href="https://github.com/itstaranarora/javascript30-challenge/tree/master/Day%205%20-%20Flex%20Panels">Github</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2fd433a6f3ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>