<?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: David Rodriguez</title>
    <description>The latest articles on DEV Community by David Rodriguez (@drod1107).</description>
    <link>https://dev.to/drod1107</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%2F1068526%2Fd31a6f6a-d280-4d20-814d-2867c20ea29a.jpg</url>
      <title>DEV Community: David Rodriguez</title>
      <link>https://dev.to/drod1107</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/drod1107"/>
    <language>en</language>
    <item>
      <title>How to Start a Career in Coding: FAQ's from Aspiring Developers</title>
      <dc:creator>David Rodriguez</dc:creator>
      <pubDate>Fri, 08 Sep 2023 18:21:55 +0000</pubDate>
      <link>https://dev.to/drod1107/how-to-start-a-career-in-coding-faqs-from-aspiring-developers-50hp</link>
      <guid>https://dev.to/drod1107/how-to-start-a-career-in-coding-faqs-from-aspiring-developers-50hp</guid>
      <description>&lt;h3&gt;
  
  
  Introduction
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--rubjldAA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9q096irtvvmcu4gqyjrc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rubjldAA--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9q096irtvvmcu4gqyjrc.png" alt="Link to original Post below" width="486" height="542"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://www.reddit.com/r/splatoon/comments/8uk2h8/failed/?utm_source=share&amp;amp;utm_medium=web2x&amp;amp;context=3"&gt;Original Image on Reddit&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So you're captivated by the allure of coding, eh? You're not alone. The tech industry is booming, and the demand for skilled developers is skyrocketing, regardless of what doomsday prophets might tell you.&lt;/p&gt;

&lt;p&gt;But let's be honest, diving into the world of coding can feel like navigating a labyrinth. &lt;/p&gt;

&lt;p&gt;This guide offers the stunning secrets and manageable steps to kickstart your coding career, even if you're a complete newbie or coming from a non-technical background.&lt;/p&gt;




&lt;h3&gt;
  
  
  Demystifying the Fundamentals
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--GN7YyBrv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://realtoughcandy.com/wp-content/uploads/2022/02/tutorials-meme.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--GN7YyBrv--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://realtoughcandy.com/wp-content/uploads/2022/02/tutorials-meme.png" alt="Coding is easy to learn. How to learn is not." width="629" height="629"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Before you even think about mastering a specific language or framework, you need to get cozy with the core programming concepts. &lt;/p&gt;

&lt;p&gt;We're talking variables, data types, conditional logic, loops, functions, and algorithms. &lt;/p&gt;

&lt;p&gt;Free online courses like CS50 or Codecademy's intro courses are your best friends here. &lt;/p&gt;

&lt;p&gt;Or, if you're looking to get a ton of high level experience fast, you can start on &lt;a href="https://bit.ly/fe-prep-curriculum"&gt;our free front end prep curriculum&lt;/a&gt;, which will get you up to speed on all things static HTML/CSS/JS. &lt;/p&gt;

&lt;p&gt;Understanding these basics is like learning the ABCs before writing a novel.&lt;/p&gt;




&lt;h3&gt;
  
  
  Picking Your Poison: Choosing a Language
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--yrXPYnHI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://realtoughcandy.com/wp-content/uploads/2022/02/hello-world-meme.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--yrXPYnHI--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://realtoughcandy.com/wp-content/uploads/2022/02/hello-world-meme.jpg" alt="Hello World is a universal thrill" width="508" height="629"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When it comes to programming languages, you're spoiled for choice. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Python is the darling of simplicity and versatility. &lt;/li&gt;
&lt;li&gt;JavaScript is the lifeblood of interactive web pages. &lt;/li&gt;
&lt;li&gt;Sometimes an older base language like C or Java can land you roles in modernizing systems - this is a HUGE need in tech right now! &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The key is to pick one and go deep. Mastering one language is far more valuable than being a jack-of-all-trades but a master of none.&lt;/p&gt;




&lt;h3&gt;
  
  
  The Art of Building Projects
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--i_Qe7use--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://realtoughcandy.com/wp-content/uploads/2022/02/git-meme.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--i_Qe7use--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://realtoughcandy.com/wp-content/uploads/2022/02/git-meme.png" alt="Commitment is important" width="460" height="259"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Once you've got the basics down, it's time to get your hands dirty. Start with a simple project like a calculator, a 2D game, or a to-do list app. &lt;/p&gt;

&lt;p&gt;Break it down into bite-sized tasks and tackle them one at a time. When you hit a roadblock, don't shy away from seeking solutions online or asking for help. &lt;/p&gt;

&lt;p&gt;These projects are not just for practice; they're portfolio gold!&lt;/p&gt;




&lt;h3&gt;
  
  
  Freebies Galore: Utilizing Free Resources
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--P66lf19C--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://www.meme-arsenal.com/memes/386da1738154e31f965e260dd1fcf211.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--P66lf19C--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://www.meme-arsenal.com/memes/386da1738154e31f965e260dd1fcf211.jpg" alt="Free is good" width="800" height="615"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Who says you need to break the bank to learn coding? The internet is a treasure trove of free resources. From YouTube tutorials and podcasts to forums and documentation, the list is endless. &lt;br&gt;
Some top picks include &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;freeCodeCamp&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Codecademy&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;MDN Web Docs&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;And, of course... you can always dip your toe in with one of our &lt;a href="https://bit.ly/eventBriteSignup"&gt;free intro to web dev preview nights&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;Tip: Keep a progress tracker and celebrate your small wins; they add up!&lt;/p&gt;




&lt;h3&gt;
  
  
  Plugging into the Coding Community
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--IUOCQWl---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://realtoughcandy.com/wp-content/uploads/2022/02/bugs-meme.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--IUOCQWl---/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://realtoughcandy.com/wp-content/uploads/2022/02/bugs-meme.jpg" alt="It's easier with friends" width="629" height="629"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The coding community is more welcoming than you might think. Attend local meetups, engage in online forums, join Twitter chats, and find a study buddy. &lt;/p&gt;

&lt;p&gt;Networking isn't just about landing a job; it's about learning from others, sharing knowledge, and building a support system.&lt;/p&gt;




&lt;h3&gt;
  
  
  Bootcamps and Certificates: Yay or Nay?
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--bQ4uXkdj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://preview.redd.it/fz2yowbeoo561.jpg%3Fwidth%3D960%26crop%3Dsmart%26auto%3Dwebp%26s%3D22e218345c58006d829c78e91e570ad9c812bddd" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--bQ4uXkdj--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://preview.redd.it/fz2yowbeoo561.jpg%3Fwidth%3D960%26crop%3Dsmart%26auto%3Dwebp%26s%3D22e218345c58006d829c78e91e570ad9c812bddd" alt="Reddit Post - meme on coding requirements" width="800" height="800"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After you've built a solid foundation, you might consider leveling up through a bootcamp or certificate program. &lt;/p&gt;

&lt;p&gt;These programs are like coding on steroids—they're intense, fast-paced, and they get you job-ready. &lt;/p&gt;

&lt;p&gt;However, they're not for everyone. Weigh the cost, curriculum, and time commitment before taking the plunge.&lt;/p&gt;

&lt;p&gt;If you ARE interested, you can learn more about ours here:&lt;br&gt;
&lt;a href="https://savvycoders.com"&gt;https://savvycoders.com&lt;/a&gt;&lt;/p&gt;




&lt;h3&gt;
  
  
  The Job Hunt Saga
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--rLuiPsNx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://realtoughcandy.com/wp-content/uploads/2022/02/describe-meme.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--rLuiPsNx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://realtoughcandy.com/wp-content/uploads/2022/02/describe-meme.png" alt="Ai will not take your job" width="460" height="329"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You've got the skills, and now you need to show them off. Start applying for entry-level roles, internships, or even freelance gigs. &lt;/p&gt;

&lt;p&gt;Your resume should scream "I'm a coder!"—highlight your projects, community involvement, and any relevant experience. &lt;/p&gt;

&lt;p&gt;And remember, persistence is key. You might have to face a series of rejections before you hit the jackpot, but that's all part of the journey!&lt;/p&gt;




&lt;h3&gt;
  
  
  The Never-Ending Cycle of Learning
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--sAbr_DhZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://techresearchonline.com/wp-content/uploads/2022/08/Machine-learning-be-like-Funny.webp" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--sAbr_DhZ--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://techresearchonline.com/wp-content/uploads/2022/08/Machine-learning-be-like-Funny.webp" alt="Machine Learning vs Human Learning" width="700" height="563"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The tech world is ever-evolving. New languages, frameworks, and tools pop up like mushrooms after the rain. Continuous learning isn't just recommended; it's required. Even when you land that dream job, the learning never stops. Keep up with industry trends, take up new courses, and never stop being a student.&lt;/p&gt;




&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;How should a beginner start coding?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Focus on understanding core programming concepts before diving into a specific language. Build simple projects to apply your skills practically.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;&lt;strong&gt;How do I start my career in coding?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Start by building a strong foundation in programming basics and a specific language. Engage in networking, consider further education, and start applying for entry-level roles.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Can I start coding with no experience?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Absolutely! With consistent practice and the right resources, you can go from zero to hero.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Can I learn coding on my own?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Yes, self-study is a viable path. Utilize free online courses, tutorials, and community forums to build your skills.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Can I learn coding at 40 and get a job?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Age is just a number in the coding world. With dedication and the right resources, you can become job-ready at any age.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Is 30 too late to start coding?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Not at all! Many developers start their coding journey later in life.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Am I too old at 40 years old to start a coding career?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Absolutely not! Your unique life experiences can actually be an asset in the tech world.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Can I get a high paying coding job without a degree?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Skills trump degrees in the tech industry. Build an impressive portfolio to showcase your abilities.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;&lt;strong&gt;How many hours does it take to learn coding?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Many experts agree that you should expect to spend at least 300-400 hours to become job-ready. Consistency is key. &lt;/li&gt;
&lt;li&gt;The good news? YOU decide how many days, weeks, months, or years that 300-400 hours takes to plow through - there are no bonus points for spreading it out over years. &lt;/li&gt;
&lt;li&gt;If you can speak to your experience, it will count in interviews - whether you gained it in 6 months or 6 years!&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Is there a difference between programming and coding?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Coding is the act of writing code, while programming encompasses the broader process of developing software.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;&lt;strong&gt;How long does it take to learn coding from scratch?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;With consistent practice, you can go from a complete beginner to job-ready in 6 months to a year.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;&lt;strong&gt;What is the easiest coding job to get?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Entry-level roles in front-end web development, QA testing, and data analysis are generally more accessible.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Why did you quit programming?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;I didn't quit; I love coding and teaching others. Some people quit due to burnout or realizing it's not a good fit, but many find it rewarding long-term.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;li&gt;

&lt;p&gt;&lt;strong&gt;Is 55 too old to learn coding?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It's never too late to learn. Age is not a barrier in the tech industry.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;
&lt;/ul&gt;




&lt;p&gt;I hope this empowered you to go satisfy your curiosity and dig into some code!&lt;/p&gt;

&lt;h3&gt;
  
  
  Have more questions? Connect with me on LinkedIn:
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://bit.ly/david-on-linkedin"&gt;David @ Windrose&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--isSgITVc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cwxx5v2t8g887pn185lh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--isSgITVc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cwxx5v2t8g887pn185lh.png" alt="QR code to connect with David on LinkedIn" width="720" height="720"&gt;&lt;/a&gt;&lt;/p&gt;




</description>
      <category>beginners</category>
      <category>webdev</category>
      <category>career</category>
      <category>javascript</category>
    </item>
    <item>
      <title>The World's Easiest Collapsible Nav Bar</title>
      <dc:creator>David Rodriguez</dc:creator>
      <pubDate>Wed, 26 Jul 2023 17:00:04 +0000</pubDate>
      <link>https://dev.to/drod1107/the-worlds-easiest-collapsible-nav-bar-51lg</link>
      <guid>https://dev.to/drod1107/the-worlds-easiest-collapsible-nav-bar-51lg</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;"How to make a collapsible nav bar with hamburger icon"&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"How to make hamburger bar"&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;"Easy vanilla JS responsive navigation menu"&lt;/strong&gt;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;If these searches look familiar to you - and the disappointment that follows them is a feeling you're well acquainted with - then chances are, you're a newer coder who's looking to go mobile-responsive. &lt;/p&gt;

&lt;p&gt;If we want users to stick around, we'll need our website to look gorgeous and work intuitively in a clean, organized way on ALL device sizes. If you've not lived under a rock for the last 10 years, then you've undoubtedly seen the "Holy Grail" of mobile-friendly features, the collapsible nav bar - sometimes referred to as a "Hamburger bar" for the fact that the most common icon we use to indicate it's presence is, in fact, shaped kind of like a hamburger.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The idea is simple.&lt;/strong&gt;&lt;br&gt;
When our app is displayed on a mobile device with a screen below a set size, our normal web page navigation bar, which might look something like this:&lt;br&gt;
Desktop view of a bootcamp website&lt;/p&gt;

&lt;p&gt;…will instead disappear and be replaced by this:&lt;br&gt;
Mobile view of the same header - note that the icon is not a hamburger. You can use any icon you want! Just make sure users will intuitively understand what it's for!&lt;/p&gt;

&lt;p&gt;Now our navigation bar won't take up the entire screen. When a user taps on that icon, our navigation bar should roll out smoothly below to display the list items - our links - in a column below.&lt;/p&gt;



&lt;p&gt;So how do we do this? There are a dozen ways, probably, but I believe simplicity is the sturdiest foundation for quality engineering, so let's start with a very basic html template that can easily be built out later as needed:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;html&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;

    &lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt; &lt;span class="na"&gt;rel=&lt;/span&gt;&lt;span class="s"&gt;"stylesheet"&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"text/css"&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"styles.css"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt;
      &lt;span class="na"&gt;rel=&lt;/span&gt;&lt;span class="s"&gt;"stylesheet"&lt;/span&gt;
      &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"https://fonts.googleapis.com/icon?family=Material+Icons"&lt;/span&gt;
    &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;nav&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"hamburger"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;i&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"material-icons"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;menu&lt;span class="nt"&gt;&amp;lt;/i&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;ul&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"nav-links"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;li&amp;gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"index.html"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Home&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;li&amp;gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"page2.html"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;About&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;li&amp;gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"somebody@someplace.com"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Contact&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/nav&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;script &lt;/span&gt;&lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"script.js"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;As you can see, it's pretty straightforward - but just in case, here's a breakdown of the code itself:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="cp"&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;html&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
    &lt;span class="c"&gt;&amp;lt;!-- This will link our stylesheet to our index.html: --&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt; &lt;span class="na"&gt;rel=&lt;/span&gt;&lt;span class="s"&gt;"stylesheet"&lt;/span&gt; &lt;span class="na"&gt;type=&lt;/span&gt;&lt;span class="s"&gt;"text/css"&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"styles.css"&lt;/span&gt; &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
    &lt;span class="c"&gt;&amp;lt;!-- This will link the google icon for our hamburger bar 
      so we have access to use it --&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;link&lt;/span&gt;
      &lt;span class="na"&gt;rel=&lt;/span&gt;&lt;span class="s"&gt;"stylesheet"&lt;/span&gt;
      &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"https://fonts.googleapis.com/icon?family=Material+Icons"&lt;/span&gt;
    &lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
    &lt;span class="c"&gt;&amp;lt;!-- Here we create our nav bar element --&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;nav&amp;gt;&lt;/span&gt;
      &lt;span class="c"&gt;&amp;lt;!-- and then give it a div to contain our icon and a class 
        name to use in our css to make it disappear and 
        reappear at will! --&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"hamburger"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="c"&gt;&amp;lt;!-- This is where we're sticking the icon itself --&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;i&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"material-icons"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;menu&lt;span class="nt"&gt;&amp;lt;/i&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
      &lt;span class="c"&gt;&amp;lt;!-- OUTSIDE of our hamburger icon's div container, we want 
        to place our unordered list of links that make up our nav bar 
        itself, and give it a different class - this is how we'll be 
        able to set up our javaScript function to listen for a click 
        and then display the hamburger bar ONLY based on media query, 
        and separately display the nav bar in association with our e
        vent listener, which will check for the click event happening 
        on the hamburger bar, and toggle our nav bar display on or 
        off, depending! --&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;ul&lt;/span&gt; &lt;span class="na"&gt;class=&lt;/span&gt;&lt;span class="s"&gt;"nav-links"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
        &lt;span class="c"&gt;&amp;lt;!-- our unordered list items - the links themselves --&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;li&amp;gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"index.html"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Home&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;li&amp;gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"page2.html"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;About&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
        &lt;span class="nt"&gt;&amp;lt;li&amp;gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"somebody@someplace.com"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Contact&lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&lt;/span&gt;
      &lt;span class="nt"&gt;&amp;lt;/ul&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;/nav&amp;gt;&lt;/span&gt;
    &lt;span class="c"&gt;&amp;lt;!-- and that's it! Then we just link to our script.js - remember, 
      this should go at the end of the body to ensure that no scripts 
      are trying to run before the element they are attached to 
      actually exists! 👍 --&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;script &lt;/span&gt;&lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"script.js"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;p&gt;Great! So we have the "skeleton" of our nav bar. Let's flesh it out and make it it mobile-friendly, shall we? Enter - CSS!&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="nc"&gt;.hamburger&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;none&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="nc"&gt;.nav-links&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;flex&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;

&lt;span class="k"&gt;@media&lt;/span&gt; &lt;span class="n"&gt;screen&lt;/span&gt; &lt;span class="n"&gt;and&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;max-width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;768px&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nc"&gt;.nav-links&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;none&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="nl"&gt;flex-direction&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;column&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;

  &lt;span class="nc"&gt;.hamburger&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;block&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;It doesn't get much easier than that. Here's what we have going on in that sample style.css file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="c"&gt;/* First we set up our desktop view - remember, 
  our icon is only meant to show on mobile, so 
  we have set it's "display" property to have a 
  value of "none" by default. */&lt;/span&gt;
&lt;span class="nc"&gt;.hamburger&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;none&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="c"&gt;/* then we make sure our nav links will "flow" correctly
 by setting display to "flex" */&lt;/span&gt;
&lt;span class="nc"&gt;.nav-links&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;flex&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="c"&gt;/* media query time! We're selecting anything that 
has a max width of 768px - this can be anything you want,
but generally you should choose the width of the most popular
mobile devices at the time, or mobile standards, like iPhone
9 or above or Samsung S20 or above. */&lt;/span&gt;
&lt;span class="k"&gt;@media&lt;/span&gt; &lt;span class="n"&gt;screen&lt;/span&gt; &lt;span class="n"&gt;and&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;max-width&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="m"&gt;768px&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="c"&gt;/* now we set the nav links to display "none" - or dissappear 
  by default - every time the screen size is a mobile size. */&lt;/span&gt;
  &lt;span class="nc"&gt;.nav-links&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;none&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="c"&gt;/* we also want to make sure they now "flex" into a column 
    when they do display; */&lt;/span&gt;
    &lt;span class="nl"&gt;flex-direction&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;column&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="c"&gt;/* ...and our hamburger icon now defaults to be displayed as a block
rather than display "none", as it does on desktop view */&lt;/span&gt;
  &lt;span class="nc"&gt;.hamburger&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="nl"&gt;display&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nb"&gt;block&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="c"&gt;/* The net result is that there is now a class which makes the icon display 
  when we're in mobile view, and a class which makes the nav bar disappear 
  in mobile view. */&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  We're almost there, believe it or not!
&lt;/h3&gt;

&lt;p&gt;So now we have a desktop view that shows no hamburger icon but does show our nav links in a nice smooth row, and we have a mobile view where the hamburger icon DOES show up, and the nav links disappear instead - and if the nav links DO appear, they'll be in a column.&lt;br&gt;
That just leaves the magic of change - of ACTION! Now we visit the world of JavaScript to power this magic:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;hamburger&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;querySelector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;.hamburger&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;navLinks&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;querySelector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;.nav-links&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="nx"&gt;hamburger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;click&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nx"&gt;navLinks&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;style&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;display&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;navLinks&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;style&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;display&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;none&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;flex&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;none&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;span class="nx"&gt;I&lt;/span&gt; &lt;span class="nx"&gt;know&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt; &lt;span class="nx"&gt;It&lt;/span&gt; &lt;span class="nx"&gt;CAN&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;T be that easy, right?
It really, really is.

Let&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="nx"&gt;s&lt;/span&gt; &lt;span class="k"&gt;break&lt;/span&gt; &lt;span class="k"&gt;this&lt;/span&gt; &lt;span class="nx"&gt;down&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;span class="c1"&gt;// Because everything we're messing with is html, we need to give it a&lt;/span&gt;
&lt;span class="c1"&gt;// name, so-to-speak, over here in the world of js. We can do that by&lt;/span&gt;
&lt;span class="c1"&gt;// creating a variable to house each element we want to manipulate,&lt;/span&gt;
&lt;span class="c1"&gt;// and assigning the value as being basically, "the result of querying&lt;/span&gt;
&lt;span class="c1"&gt;// the DOM and retrieving any element matching X", where "X" is the name&lt;/span&gt;
&lt;span class="c1"&gt;// of the class or id we gave that element. Check it out:&lt;/span&gt;

&lt;span class="c1"&gt;// our hamburger icon:&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;hamburger&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;querySelector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;.hamburger&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;// and our nav bar itself:&lt;/span&gt;
&lt;span class="kd"&gt;var&lt;/span&gt; &lt;span class="nx"&gt;navLinks&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;querySelector&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;.nav-links&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;//  now we just add an eventlistener that listens to the hamburger icon&lt;/span&gt;
&lt;span class="c1"&gt;//  to receive a "click" event.&lt;/span&gt;
&lt;span class="nx"&gt;hamburger&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;click&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="p"&gt;()&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="c1"&gt;// every eventListener is built by default to accept two parameters - &lt;/span&gt;
  &lt;span class="c1"&gt;// the event that it's listening FOR, and a "callback function", or a &lt;/span&gt;
  &lt;span class="c1"&gt;// function it fires off in response to "hearing" the event occur. When &lt;/span&gt;
  &lt;span class="c1"&gt;// this eventListener in particular "hears" a "click" on our "hamburger" &lt;/span&gt;
  &lt;span class="c1"&gt;// element, it fires off this function, which is a terniary statement.&lt;/span&gt;

  &lt;span class="nx"&gt;navLinks&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;style&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;display&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;navLinks&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;style&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;display&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;none&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;?&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;flex&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;none&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="c1"&gt;// This teriary is basically an if-else statement (like all terniearies are)&lt;/span&gt;
  &lt;span class="c1"&gt;// and essentially says, "ReAssign the value of the 'display' attribute of&lt;/span&gt;
  &lt;span class="c1"&gt;// navLinks' style based on the result of the following assessment:&lt;/span&gt;
  &lt;span class="c1"&gt;// IF the value of the display property AT THAT TIME is currently set to&lt;/span&gt;
  &lt;span class="c1"&gt;// "none", change it to be "display: 'flex'.&lt;/span&gt;
&lt;span class="p"&gt;});&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h3&gt;
  
  
  And yes - that REALLY IS IT!
&lt;/h3&gt;

&lt;p&gt;By incorporating mobile optimization standards like these, you’ll unleash the power of your apps on ANY device — the possibilities for specialization from here are endless, so start simple, yes… But then go play!&lt;/p&gt;

&lt;p&gt;The world is your responsive web-designed oyster! 😁&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>tutorial</category>
      <category>webdev</category>
      <category>mobile</category>
    </item>
  </channel>
</rss>
