<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Kiara Contreras</title>
    <description>The latest articles on DEV Community by Kiara Contreras (@kiarathedev).</description>
    <link>https://dev.to/kiarathedev</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F176436%2Fcf1d6957-fa43-42a2-ba5c-10fdd96edd5f.JPG</url>
      <title>DEV Community: Kiara Contreras</title>
      <link>https://dev.to/kiarathedev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kiarathedev"/>
    <language>en</language>
    <item>
      <title>How to Prepare for a Technical Phone/Video Interview</title>
      <dc:creator>Kiara Contreras</dc:creator>
      <pubDate>Thu, 30 Jan 2020 15:09:33 +0000</pubDate>
      <link>https://dev.to/kiarathedev/how-to-prepare-for-a-technical-phone-video-interview-3kle</link>
      <guid>https://dev.to/kiarathedev/how-to-prepare-for-a-technical-phone-video-interview-3kle</guid>
      <description>&lt;p&gt;Photo by &lt;a href="https://unsplash.com/@andrewtneel?utm_medium=referral&amp;amp;utm_campaign=photographer-credit&amp;amp;utm_content=creditBadge" rel="noopener noreferrer" title="Download free do whatever you want high-resolution photos from Andrew Neel"&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Andrew Neel&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After doing more interviews than I'd like to admit, I thought I'd share things that I've done to set myself up for success. Having set actions that you complete prior to the interview can ease anxiousness by creating routine. Each time I have a video/phone interview I learn something new about my personal interview style and what makes me comfortable.&lt;/p&gt;

&lt;p&gt;This post includes information about actions that are meant to be done within the hour before your interview.&lt;/p&gt;

&lt;h3&gt;
  
  
  Take Notes Before the Interview
&lt;/h3&gt;

&lt;p&gt;Write down the name of your interviewer, their position, and questions you'd like to ask them. Interview brain can go blank so having this on-hand and close is always helpful. It's one less thing you have to worry about!&lt;/p&gt;

&lt;h3&gt;
  
  
  Get Dressed
&lt;/h3&gt;

&lt;p&gt;Be sure to wear something that you'd be confident in. It doesn't have to be business causal attire but get out of your pajamas. Getting into interview clothes can help your energy and that translates virtually to the interviewer.&lt;/p&gt;

&lt;p&gt;Even if it's a screen-share, &lt;strong&gt;&lt;em&gt;get dressed&lt;/em&gt;&lt;/strong&gt;. It's better that they don't see you and you're prepared vs. having to turn on your camera to reveal bedhead. (Seriously, I almost didn't get dressed once and it was the only screen-share interview I've had where they wanted to see me.)&lt;/p&gt;

&lt;h3&gt;
  
  
  Alert Others of Your Interview
&lt;/h3&gt;

&lt;p&gt;If you're at home and live with other people, let them know you have an interview! Doing this can create the quiet space you need for the interview, which leads to my next suggestion.&lt;/p&gt;

&lt;h3&gt;
  
  
  Find a Quiet Spot
&lt;/h3&gt;

&lt;p&gt;Be sure to pick a quiet spot. A quiet space will aid in keeping concentration on the most important aspect, the interview.&lt;/p&gt;

&lt;h3&gt;
  
  
  Test Camera &amp;amp; Audio
&lt;/h3&gt;

&lt;p&gt;Use your computer's built-in camera or your webcam in order to see what you would look like in the interview. This will help in determining if you're sitting in the best spot! &lt;/p&gt;

&lt;p&gt;Try to place the computer/webcam at eye level. Doing this will help with your posture and you can speak directly without turning. Take time to find a neutral background. I usually have my back to a white wall so that my surroundings aren't a distraction to the interviewer.&lt;/p&gt;

&lt;p&gt;Make sure to use &lt;strong&gt;&lt;em&gt;wired&lt;/em&gt;&lt;/strong&gt; headphones! Having your bluetooth headphones die during an interview isn't fun, trust me. Test them by listening to your favorite music or by watching a funny video.&lt;/p&gt;

&lt;h3&gt;
  
  
  Check Internet Connection
&lt;/h3&gt;

&lt;p&gt;Visit a few websites to make sure that the internet connection is working properly. I like to watch something funny to get me laughing.&lt;/p&gt;

&lt;h3&gt;
  
  
  Have Resume &amp;amp; Job Description Accessible
&lt;/h3&gt;

&lt;p&gt;Being able to speak about the position while referencing the job description can be an incredible asset. Having them open gives you the option to use buzz words referenced in the job description!&lt;/p&gt;

&lt;p&gt;You may get questions about your resume, so rather than attempting to memorize your wording, have it readily available.&lt;/p&gt;

&lt;h3&gt;
  
  
  Silence Your Devices
&lt;/h3&gt;

&lt;p&gt;I've been interviewed without silencing my computer's notifications, what a mistake that was. I got messages from my mom during a screen-share and the interviewers saw popups, it was very distracting!&lt;/p&gt;

&lt;p&gt;If you're using a cellphone, silence notifications once the call has started.&lt;/p&gt;

&lt;h3&gt;
  
  
  Clear Your Space
&lt;/h3&gt;

&lt;p&gt;Take a moment to remove items from your space that aren't needed. These items can provide a distraction and can physically get in your way if you move around. I find that having a cleaner space makes me feel more calm.&lt;/p&gt;

&lt;h3&gt;
  
  
  Gather Your Essentials
&lt;/h3&gt;

&lt;p&gt;It'll take some time to figure out what you like best but here are things that I &lt;strong&gt;&lt;em&gt;need&lt;/em&gt;&lt;/strong&gt; to have during video/phone interviews:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Water (ideally in a sealed container to avoid spilling)&lt;/li&gt;
&lt;li&gt;Paper &amp;amp; Pen (includes notes taken beforehand)&lt;/li&gt;
&lt;li&gt;Lip balm&lt;/li&gt;
&lt;li&gt;Wired headphones&lt;/li&gt;
&lt;li&gt;Laptop connected to power throughout the interview&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Stretch and Take Deep Breaths
&lt;/h3&gt;

&lt;p&gt;Getting your body moving can help with energy and nerves. Try taking slower breaths, doing this can aid in controlling your heart rate. Read more about it &lt;a href="https://www.health.harvard.edu/mind-and-mood/relaxation-techniques-breath-control-helps-quell-errant-stress-response"&gt;here&lt;/a&gt; from Harvard Health Publishing.&lt;/p&gt;

&lt;h3&gt;
  
  
  Take a Bathroom Break
&lt;/h3&gt;

&lt;p&gt;I get pretty nervous before an interview so even if I don't have to use the bathroom I do it anyway. &lt;/p&gt;

&lt;p&gt;What if the interview runs long? What if I chug too much water out of nervousness and have to wait until the interview is done to go? Try not to set yourself up for distraction by going before the call starts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Thanks so much for taking the time to read this! I truly enjoy writing about interviewing and will continue to do so. Leave a comment if there's something specific you'd like me to write about!&lt;/p&gt;

&lt;p&gt;I'd also love to hear about how you prep! Feel free to provide suggestions below for other devs.&lt;/p&gt;

</description>
      <category>career</category>
      <category>webdev</category>
      <category>beginners</category>
    </item>
    <item>
      <title>How To Tackle A Technical Interview By Using Soft Skills</title>
      <dc:creator>Kiara Contreras</dc:creator>
      <pubDate>Sun, 17 Nov 2019 23:36:57 +0000</pubDate>
      <link>https://dev.to/kiarathedev/how-to-tackle-a-technical-interview-by-using-soft-skills-2dkn</link>
      <guid>https://dev.to/kiarathedev/how-to-tackle-a-technical-interview-by-using-soft-skills-2dkn</guid>
      <description>&lt;p&gt;Cover photo by &lt;a href="https://unsplash.com/@markrabephotography?utm_medium=referral&amp;amp;utm_campaign=photographer-credit&amp;amp;utm_content=creditBadge" rel="noopener noreferrer" title="Download free do whatever you want high-resolution photos from Mark Rabe"&gt;Mark Rabe&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;When I was asked to present to high school developers on the subject of technical interviews I did what any professional developer does to prepare, I turned to the internet. It's been about a year since I've done a technical interview and as I researched I revisited the idea that there was more to the technical interview than just answering a problem on a whiteboard.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is the purpose of a technical interview?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--0GungctG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/adiviehaniafm6re8ske.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--0GungctG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/adiviehaniafm6re8ske.png" alt="what is the purpose of a technical interview"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Horror stories of developers having to answer brain teasers are still passed around and can definitely be spooky. Thankfully, it seems like the community is moving forward as interviewers are getting better at wanting to see your skillset and work-related abilities. These interviews are mainly an opportunity for you to show your thought process when faced with a new, sometimes difficult problem. I discovered that one particular soft skill was referenced over and over as being the most important part of the technical interview.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is the most important part of the Technical Interview?
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ro_dNLCs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/j1dzf69o1e5q9fp6odtr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ro_dNLCs--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/j1dzf69o1e5q9fp6odtr.png" alt="most important part of the technical interview is communication"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The best thing you can do as an interviewee is to communicate with your interviewer. They're there to get to know you and your problem solving skills. The more pertinent information you give, the more insight they have about you as a professional developer. &lt;/p&gt;

&lt;h3&gt;
  
  
  1. Talk out your reasoning &amp;amp; problem solving process
&lt;/h3&gt;

&lt;h4&gt;
  
  
  Ask Questions:
&lt;/h4&gt;

&lt;p&gt;Be sure to ask any questions you have about the problem before you even start coding. Write down important information like the input/output expected, validation of the inputs, or if spacial/time complexity is important to the solution.&lt;/p&gt;

&lt;h4&gt;
  
  
  Explain what you’re thinking:
&lt;/h4&gt;

&lt;p&gt;It’s easy to go silent when confronted with a difficult problem and while this is natural, it is not very helpful for the interviewer. You speaking about your thoughts helps them understand your skills and critical thinking. &lt;/p&gt;

&lt;h4&gt;
  
  
  Describe what is your process:
&lt;/h4&gt;

&lt;p&gt;How do you break down the different components? How do you arrive at a solution? Writing in pseudocode after you've written your notes will help with breaking the problem into smaller pieces and can be converted to actual code once you're comfortable with your logic.&lt;/p&gt;

&lt;h4&gt;
  
  
  Example of Explaining Your Reasoning
&lt;/h4&gt;

&lt;p&gt;&lt;em&gt;“I’m going to store this data in an array.”&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Cool, you've heard of an array, but expand on why you're using it.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;“I’m going to store this data in an array because I already know that the input given is sorted and lookup would be efficient with this data structure.”&lt;/em&gt; &lt;/p&gt;

&lt;p&gt;Great! This answer shows what data structure you're planning on using and why you believe it's the best one to use. &lt;/p&gt;

&lt;h3&gt;
  
  
  2. Solve it Twice
&lt;/h3&gt;

&lt;p&gt;I know, you may have a hard time solving it just once but hear me out. &lt;/p&gt;

&lt;p&gt;Few problems only have one solution and focusing on one way to solve a problem misses a major opportunity to prove your know-how. Most likely the first idea that comes to mind will be a brute force answer. Open up the conversation by mentioning your initial thoughts, an idea about a more efficient answer, and your plan on returning to the problem for refactoring later. This is extremely valuable as it shows that you recognize the solution can be improved upon. &lt;/p&gt;

&lt;p&gt;Let's say you're able to answer the problem with a brute force method. Once complete, test it with edge cases that come to mind. Ask your interviewer if there's time for you to refactor and if not then explain how you would if you had more time.&lt;/p&gt;

&lt;p&gt;If you can't think about a secondary answer then that's ok. Continue practicing answering algorithmic questions and study when you can. Interviewing is a skill on its own and practicing will only make it easier.&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Answering with “I don’t know”
&lt;/h3&gt;

&lt;p&gt;Try not to answer the question with "I don't know". You're a human, it's ok to not know everything. The interviewer (hopefully) doesn't expect you to be perfect, what they do want is someone who doesn't quit on the problem. &lt;/p&gt;

&lt;p&gt;A better answer would be &lt;em&gt;“I don’t know how to do that, but here’s how I would go about figuring it out”&lt;/em&gt;. This gives you the chance to explain your learning process and that is valuable information for the interviewer to know!&lt;/p&gt;

&lt;h3&gt;
  
  
  4. Breaking down the interview into steps
&lt;/h3&gt;

&lt;p&gt;No matter the company, from brand new startup to Fortune 500, these steps are integral to communicating your knowledge in a technical interview. Here's a simple process on how to go about answering the question.  &lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--ICJV7J_2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/8cmy6plow664k3fxwpqe.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--ICJV7J_2--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/8cmy6plow664k3fxwpqe.png" alt="interview process steps"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If you can, practice whiteboarding with a friend! This can be beneficial for you improving your communication skills and practice the above steps while coding in a safe space. I believe that our greatest resource is our peers and there's no better way than to learn from each other.&lt;/p&gt;

&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;Thank you so much for being on this platform. dev.to is really my favorite and I'm so happy that I get to contribute. I couldn't have written this post without the plethora of resources I found online.&lt;/p&gt;

&lt;h3&gt;
  
  
  Resources
&lt;/h3&gt;

&lt;p&gt;There is so much material available that I've made a list of my favorites. I've included different mediums such as articles, videos, and practice questions. I hope that one of these will match your best learning style.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/chatasweetie/whiteboarding-and-coding-problems/tree/master/questions"&gt;Practice Questions&lt;/a&gt;&lt;br&gt;
&lt;a href="https://learntocodewith.me/posts/technical-interview/"&gt;The Ultimate Guide to Acing Your Technical Interview&lt;/a&gt;&lt;br&gt;
&lt;a href="https://hackernoon.com/the-best-whiteboard-interview-advice-i-ever-received-3ebbfa72e4a"&gt;The Best Whiteboard Interview Advice I Ever Received&lt;/a&gt;&lt;br&gt;
&lt;a href="https://dev.to/emmawedekind/decoding-the-front-end-interview-process-14dl"&gt;Decoding the Front-end Interview Process&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.themuse.com/advice/5-smart-moves-to-make-in-a-technical-interview-that-have-nothing-to-do-with-coding"&gt;5 Smart Moves to Make in a Technical Interview (That have nothing to do with coding)&lt;/a&gt;&lt;br&gt;
&lt;a href="https://leetcode.com/"&gt;Leetcode&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.hackerrank.com/interview/interview-preparation-kit"&gt;Hackerrank Interview Preparation Kit&lt;/a&gt;&lt;br&gt;
&lt;a href="https://youtu.be/XKu_SEDAykw"&gt;How To: Work at Google - Example Coding/Engineering Interview&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.youtube.com/playlist?list=PLBZBJbE_rGRVnpitdvpdY9952IsKMDuev"&gt;CSDojo - Coding Interview Questions &amp;amp; Answers Playlist&lt;/a&gt;&lt;br&gt;
&lt;a href="https://medium.com/educative/5-dynamic-programming-problems-and-solutions-for-your-next-coding-interview-ad938bce2351"&gt;6 Dynamic Programming problems and solutions for your next coding interview&lt;/a&gt;&lt;br&gt;
&lt;a href="https://dev.to/seattledataguy/the-interview-study-guide-for-software-engineers-764"&gt;The Interview Study Guide For Software Engineers&lt;/a&gt;&lt;br&gt;
&lt;a href="https://dev.to/elliot/my-google-technical-interview-cheat-sheet-1lbd"&gt;My Google Technical Interview Cheat Sheet&lt;/a&gt;&lt;br&gt;
&lt;a href="https://dev.to/ice_lenor/11-mistakes-to-avoid-on-a-technical-interview-4o40"&gt;11 Mistakes to Avoid On A Technical Interview&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.youtube.com/playlist?list=PLX6IKgS15Ue02WDPRCmYKuZicQHit9kFt"&gt;Cracking the Coding Interview Playlist&lt;/a&gt;&lt;/p&gt;

</description>
      <category>career</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>advice</category>
    </item>
    <item>
      <title>Why I Don't Use Foo/Bar/Baz</title>
      <dc:creator>Kiara Contreras</dc:creator>
      <pubDate>Wed, 17 Jul 2019 20:58:28 +0000</pubDate>
      <link>https://dev.to/kiarathedev/why-i-don-t-use-foo-bar-baz-1kf7</link>
      <guid>https://dev.to/kiarathedev/why-i-don-t-use-foo-bar-baz-1kf7</guid>
      <description>&lt;p&gt;As a beginner developer, I was always confused as to why others would use foo, bar, or baz. When I approached these words used in examples I assumed that they were pertinent to the code I was reading. I quickly learned that these names did not hold any weight and were often used in teaching examples as a placeholder for a better name. &lt;/p&gt;

&lt;p&gt;While learning how to program, I've both picked up and discovered my own naming conventions. I've found that taking an extra moment to think up a clear name has been better for my understanding of the code presented, my peers reading my code, and future me, who doesn't vaguely remember what said code does.&lt;/p&gt;

&lt;p&gt;Let's look at an example using foo/bar/baz:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fjtywubb9vo8z3x3z4nbm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2Fjtywubb9vo8z3x3z4nbm.png" alt="foobarExample"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;How can this be improved for future programmers to read? If I take an extra moment to rename the variables then the function becomes easier to understand because each variable is pertinent to its data.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F2vw79bzdvlugare9icc9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fthepracticaldev.s3.amazonaws.com%2Fi%2F2vw79bzdvlugare9icc9.png" alt="updatedExample"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This is definitely a basic example, but all programmers start somewhere. I believe that naming examples with words or phrases can: &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Help a person grasp a concept more easily when learning to program&lt;/li&gt;
&lt;li&gt;Begin to teach them how to name data clearly&lt;/li&gt;
&lt;li&gt;Create a better programmer from the start &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Thanks for hearing me out. If you're interested, here's a cool &lt;a href="https://stackoverflow.com/questions/4868904/what-is-the-origin-of-foo-and-bar" rel="noopener noreferrer"&gt;Stackoverflow post&lt;/a&gt; about foo/bar/baz's history.&lt;/p&gt;

</description>
      <category>productivity</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>syntax</category>
    </item>
    <item>
      <title>JS == vs ===</title>
      <dc:creator>Kiara Contreras</dc:creator>
      <pubDate>Mon, 15 Jul 2019 21:29:17 +0000</pubDate>
      <link>https://dev.to/kiarathedev/js-vs-2njm</link>
      <guid>https://dev.to/kiarathedev/js-vs-2njm</guid>
      <description>&lt;p&gt;This post expects prior knowledge on &lt;a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures"&gt;data types&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Javascript gives two options for testing equality that look really similar. Together we'll walk through the difference between &lt;code&gt;==&lt;/code&gt; and &lt;code&gt;===&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/4JVTF9zR9BicshFAb7/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/4JVTF9zR9BicshFAb7/giphy.gif" alt="confused"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Triple Equals / ===
&lt;/h3&gt;

&lt;p&gt;Using Triple Equals tests for strict equality, meaning, both the &lt;strong&gt;type&lt;/strong&gt; and the &lt;strong&gt;value&lt;/strong&gt; have to be the same. &lt;/p&gt;

&lt;p&gt;Here are some examples that return &lt;strong&gt;true&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;10 === 10&lt;br&gt;
// true : both Integers and values match&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;true === true&lt;br&gt;
// true : both Booleans and values match&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;'hello world' === 'hello world'&lt;br&gt;
// true : both Strings and values match&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Here are some examples that return &lt;strong&gt;false&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;100 === '100'&lt;br&gt;
// false : comparison of an Integer and a String&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;'red' === 'blue'&lt;br&gt;
// false : both Strings with different values&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;false === 0&lt;br&gt;
// false : both different types and different value&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;What if we wanted to test loose equality where only the value mattered? Then we can use &lt;code&gt;==&lt;/code&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Double Equals / ==
&lt;/h3&gt;

&lt;p&gt;Using Double Equals tests for loose equality. Here only the &lt;strong&gt;value&lt;/strong&gt; has to be the same. Javascript makes this possible by completing type coercion which will actually try to convert our values into a like type. Let's return to one of the previous examples that returned &lt;strong&gt;false&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;100 == '100'&lt;br&gt;
// true : comparison of an Integer and a String&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;false == 0&lt;br&gt;
// true&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The example of &lt;code&gt;false == 0&lt;/code&gt; can be confusing. This example returns &lt;code&gt;true&lt;/code&gt; because 0 in Javascript is described as being &lt;strong&gt;falsy&lt;/strong&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  In Conclusion
&lt;/h3&gt;

&lt;p&gt;When testing equality using Triple Equals is preferred. Testing the type and value ensure true equality testing.&lt;/p&gt;

&lt;p&gt;Both experience and &lt;a href="https://codeburst.io/javascript-double-equals-vs-triple-equals-61d4ce5a121a"&gt;this article&lt;/a&gt; provided information on the topic and describes in detail what &lt;strong&gt;falsy&lt;/strong&gt; means.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Understanding JS Ternary Operators</title>
      <dc:creator>Kiara Contreras</dc:creator>
      <pubDate>Fri, 12 Jul 2019 15:09:39 +0000</pubDate>
      <link>https://dev.to/kiarathedev/understanding-js-ternary-operators-5epi</link>
      <guid>https://dev.to/kiarathedev/understanding-js-ternary-operators-5epi</guid>
      <description>&lt;p&gt;As a beginner dev, seeing code like this can be a tad bit, well, overwhelming.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;let person = {&lt;br&gt;
  name: 'John',&lt;br&gt;
  age: 25,&lt;br&gt;
  legal: null&lt;br&gt;
};&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;person.legal = person.age &amp;gt;= 21 ? 'Yes' : 'No';&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/oubM1tKqnLW5G/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/oubM1tKqnLW5G/giphy.gif" alt="overwhelmed"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Not to worry! Conditional (Ternary) Operators can be easy to use and will simplify your code, even if it's just a little bit. &lt;/p&gt;

&lt;h3&gt;
  
  
  What do Ternary Operators represent?
&lt;/h3&gt;

&lt;p&gt;Ternary Operators are used as a shorthand for &lt;code&gt;if else&lt;/code&gt; statements. &lt;code&gt;if else&lt;/code&gt; statements check a condition and usually have this syntax:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;if (condition) {&lt;br&gt;
  value if true;&lt;br&gt;
} else {&lt;br&gt;
  value if false;&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;So, if I wanted to determine whether the above person was above the legal US age for drinking I could write an &lt;code&gt;if else&lt;/code&gt; statement like so.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;if (person.age &amp;gt;= 21) {&lt;br&gt;
  person.legal = 'Yes';&lt;br&gt;
else {&lt;br&gt;
  person.legal = 'No';&lt;br&gt;
}&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;In the example above I'm able to determine whether the person is legal and assign a value to &lt;code&gt;person.legal&lt;/code&gt;. But we can also accomplish this by using the ternary operator! Below is the syntax:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;condition ? value if true : value if false&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Instead of using an &lt;code&gt;if else&lt;/code&gt; statement let's return the the first example given.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;person.legal = person.age &amp;gt;= 21 ? 'Yes' : 'No'&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Here I'm assigning &lt;code&gt;person.legal&lt;/code&gt; to be either Yes or No by checking their age. If &lt;code&gt;person.age &amp;gt;= 21&lt;/code&gt; then Yes is returned. Otherwise &lt;code&gt;person.legal&lt;/code&gt; is set to No.&lt;/p&gt;

&lt;h3&gt;
  
  
  Things to know
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;The condition is what's being tested, whether it be an &lt;code&gt;if else&lt;/code&gt; statement or ternary operator.&lt;/li&gt;
&lt;li&gt;A &lt;code&gt;?&lt;/code&gt; separates the condition from the true value. Anything after the &lt;code&gt;?&lt;/code&gt; and the before the &lt;code&gt;:&lt;/code&gt; is what is executed if the condition is true.&lt;/li&gt;
&lt;li&gt;If the condition evaluates to false, any code after the colon is executed.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In conclusion, I appreciate you reading this and hope that you can now use ternary operators! Besides experience, I got most of my information from &lt;a href="https://codeburst.io/javascript-the-conditional-ternary-operator-explained-cac7218beeff"&gt;this awesome article&lt;/a&gt; which goes on to explain advanced ternary operators such as Nested Ternary and Multiple Ternary.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>tutorial</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
