<?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 Daniella Mato on Medium]]></title>
        <description><![CDATA[Stories by Daniella Mato on Medium]]></description>
        <link>https://medium.com/@daniella_mato?source=rss-2f955c02cd3a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*T52Rp_lKaAyYR4qv.jpg</url>
            <title>Stories by Daniella Mato on Medium</title>
            <link>https://medium.com/@daniella_mato?source=rss-2f955c02cd3a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 16:41:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@daniella_mato/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[What Is Hoisting In JavaScript?]]></title>
            <link>https://medium.com/@daniella_mato/what-is-hoisting-in-javascript-bc0322376239?source=rss-2f955c02cd3a------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc0322376239</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[junior-developer]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[code-newbie]]></category>
            <dc:creator><![CDATA[Daniella Mato]]></dc:creator>
            <pubDate>Fri, 01 Dec 2017 12:50:28 GMT</pubDate>
            <atom:updated>2017-12-01T13:43:55.460Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/698/1*oY0f130R_lonlHYEtHb1Ow.jpeg" /></figure><p>To hoist in everyday English language means to raise something by means of ropes and pulleys. Synonyms of the word include raise, lift , jack up, pull up, elevate , amongst others.</p><p>Hoisting in JavaScript isn’t far from the above meaning actually. I learned about this concept some days back while taking one of the lessons in the #GoogleUdacityScholars program. Hoisting in JavaScript is said to cause a lot of hard-to-find bugs in your code if not well understood.</p><p>So, what exactly is hoisting? Hoisting is the re-arrangement of your JavaScript code by the JavaScript interpreter, It usually involves pulling up certain aspects of the JavaScript code. This rearrangement mostly has to do with Functions. For example, one way that hoisting occurs in our code is that it lifts / pulls up / hoists all our functions to the top of the code before running the entire code.</p><p>If we have a code like this where the function has been called before being declared;</p><pre>awesome();</pre><pre> function awesome(){<br>     alert(“You are an awesome person!”);<br> }</pre><p>The above code will run normally because of hoisting. If not for hoisting , the above code should have thrown an error that goes something like, “Hello? I can’t find any function awesome ahead of me!” , hahaha, probably not in those exact words but you get the drift. Instead, what hoisting does is to change the code above to this and then run it.</p><pre>function awesome(){<br>     alert(“You are an awesome person!”);<br> }<br> awesome();</pre><p><strong><em>Note that your code will not change from the way you have written it, this is a behind the scenes thing that the JavaScript interpreter does.</em></strong></p><p>Here is another example of hoisting, if you declare a variable in a function after it has been used in the function, JavaScript interpreter will hoist(lift) the variable so that the code runs but most times the code will not output the correct answer most likely. Below is an example from a function named quote;</p><pre>function quote(){<br>  alert(buddha);<br>  var buddha = &quot;All that we are is a reflection of all we have thought.&quot;;<br>}<br>quote();</pre><p>Now we expect that the output will be the quote attached to the variable buddha but no, the output alerts “Undefined”! Why? Simple,the JavaScript interpreter hoists only the variable declaration and not it’s assignment , i.e. it re-arranged the code to this :</p><pre>function quote(){<br>     var buddha;<br>     alert(buddha);<br>     buddha = “All that we are is a reflection of all we have thought.”;<br> }<br> quote();</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/297/1*SeO2cmHXk8wvodfZkKx6-Q.png" /><figcaption>A Graphic Explanation Of What Happened.</figcaption></figure><p>Sometimes hoisting will help our code run right and sometimes it will make our code throw errors or output the wrong results because it doesn’t know exactly what we meant to write so it re-arranges our code wrongly. An effective way of preventing bugs due to hoisting is to always follow best practice when writing our JavaScript codes. We will do well to declare our functions before we call them and to declare all our variables on the top part of our functions.</p><p>So there we have it! Hoisting in JavaScript. This is only a really really basic understanding of the concept, I would advise you do more in-depth research on this topic.</p><p>If you enjoyed this, please clap so others can see it too and leave your comments below, I’d love to know your thoughts on the topic. Thanks for reading .</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc0322376239" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[10 Cool Things You Can Do on Windows CMD]]></title>
            <link>https://medium.com/@daniella_mato/10-cool-things-you-can-do-on-windows-cmd-8f97aa785eb7?source=rss-2f955c02cd3a------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f97aa785eb7</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[cmd]]></category>
            <category><![CDATA[sysadmin]]></category>
            <category><![CDATA[command-line]]></category>
            <category><![CDATA[code-newbie]]></category>
            <dc:creator><![CDATA[Daniella Mato]]></dc:creator>
            <pubDate>Thu, 09 Nov 2017 17:16:22 GMT</pubDate>
            <atom:updated>2017-11-09T17:16:22.112Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*6SysGMPf9MV_WnT9GTfHUg.png" /><figcaption>Windows CMD</figcaption></figure><p>So CMD (Command prompt) is the same as saying your terminal. On Windows you can open it up by pressing the windows key and the letter “R” on your keyboard at the same time, a pop-up box will appear with the word CMD typed in what looks like a dropdown box, tap the button labelled “OK”. There are so so many cool things you can do in this space, here are 10.</p><p>Enjoy!</p><p>1. <strong>Know The Username Of Your Computer</strong><br> Type in “whoami” , without the quotation marks, then press the Enter key on your keyboard. Your name will pop up with the username you used for your computer during registration and configuration.</p><p>2. <strong>Seek Help</strong><br> Type in “whoami/?” for help including for info about all the awesome whoami attributes to checkout.</p><p>3. <strong>Get Information About Your System</strong><br> If you are curious about the OS and all other informations about your system, a short and concise way to find out is to type “systeminfo” into your CMD and voila! There it all is, in great detail.</p><p>4. <strong>Get The IP Address Of A Website</strong><br> On those slow days when you are constantly haunted by what the IP address of a website is, all you have to do is type in “nslookup web-address”. Note that the web-address should be the domain name of the website. For example, let’s say we want to get the IP address of <a href="http://hotel.africa/">Hotel.africa</a>, which is a site for booking hotels anywhere in Africa, We would write in the CMD, “nslookup <a href="http://hotel.africa/">http://hotel.africa</a>”. The space between the nslookup command and the web-address is important, don’t forget it. The output after running this command will be the IP address of the website.</p><p>5. <strong>Get Report About Your Systems Battery</strong><br> The battery of your laptop is a very important piece. CMD can help you be better aware of your battery health at any given time by sending you a well arranged battery report if you type “powercfg /batteryreport” into your CMD. There’s a space between powercfg and the forward slash (/) symbol.</p><p>6. <strong>Switch To Administrator Setting</strong> <br> Sometimes you might want to run something in the CMD and it says you don’t have administrator rights to run it. Just press your Ctrl key + Shift key + Enter key simultaneously and administrator priviledges will be given to you instantly.</p><p>7. <strong>Automatically Access Your Previous Commands</strong><br> If you are not getting a certain command right and you know you only need to edit maybe a letter or so, rather than re-typing in the command, simply tap the Up-arrow key on your keyboard and your previous command will be entered into the current space. You can tap the Up arrow key as many times and it will keep bringing your previous commands until the very first command you ran when you opened the terminal. It’s very handy especially when you’re in a hurry.</p><p>8. <strong>Check Networks You’ve Ever Been Connected To</strong><br> If you ever want to know all the networks you’ve connected to or are looking for a particular network which you know you’ve connected to in the past, sifting between networks never connected to and those once connected to is just a CMD command away. Type “netsh wlan show profile” into your CMD and press the enter key on your keyboard. This command is a bit longer than our previous commands but you’ll get the hang of it soon enough.</p><p>9. <strong>Scan And Repair Damaged Files</strong><br> To scan and repair damaged files in your system , type “sfc /scannow” in your CMD and press the Enter key. This command takes time to finish running, sometimes as much as a couple of hours because it goes through your entire computer and repairs as many damaged files as it finds.</p><p>10. <strong>Customise The Look Of Your CMD</strong><br> You can customise the look of your CMD from that boring black background to your favourite colour. Isn’t that like the coolest thing ever? Simply tap the CMD icon on the top right hand side, then on the pop-up that appears, tap on properties and customise away. You can change fonts, background colour, text colour, cursor size, amongst other things.</p><p>So there you have it. 10 cool things to do on your windows CMD from my end. I’d love to know about the other cool things you do on yours, so please recommend this article and leave your responses below.</p><p>Thanks for reading.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f97aa785eb7" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>