<?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: Saqib Suleman</title>
    <description>The latest articles on DEV Community by Saqib Suleman (@saqibs3291).</description>
    <link>https://dev.to/saqibs3291</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%2F575634%2F20187a47-b328-427f-ad98-00aca687e1ae.jpeg</url>
      <title>DEV Community: Saqib Suleman</title>
      <link>https://dev.to/saqibs3291</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/saqibs3291"/>
    <language>en</language>
    <item>
      <title>My first JavaScript App</title>
      <dc:creator>Saqib Suleman</dc:creator>
      <pubDate>Fri, 19 Feb 2021 16:23:59 +0000</pubDate>
      <link>https://dev.to/saqibs3291/my-first-javascript-app-3me9</link>
      <guid>https://dev.to/saqibs3291/my-first-javascript-app-3me9</guid>
      <description>&lt;blockquote&gt;
&lt;p&gt;Practice makes a man perfect. &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Learning JavaScript is not something that can be accomplished overnight or by just watching some tutorial, one thing that every skill requires you to do if you want to be a master at it, is definitely practice. After going through the JavaScript section of the course, I decided to put my freshly learned skills to practice. &lt;/p&gt;

&lt;p&gt;A friend of mine shared a &lt;a href="https://dribbble.com/shots/14571353-Timing-Big-Sur-App-Icon"&gt;Dribble&lt;/a&gt; design for a clock app, so I decided to clone that app as close as possible. Initially, I was unaware that HTML and CSS can be such powerful tools when creating a UI. When I first looked at the app design, I didn't even think it was possible to make such UI with just HTML and CSS but when I started working on it, it all just came naturally to me.&lt;/p&gt;

&lt;p&gt;After I was done adding the content and styling it, it was time to make the clock work like clockwork :D. I tried but I couldn't come up with my own logic to make the clock work so I had to take help from a YouTube &lt;a href="https://www.youtube.com/watch?v=Ki0XXrlKlHY&amp;amp;t=912s&amp;amp;ab_channel=WebDevSimplified"&gt;tutorial&lt;/a&gt;. Even after watching the tutorial, I was unable to figure out how the logic was actually working because I had never seen any of the methods being used in the tutorial such as Date(), getSeconds(), getMinutes() and getHours(), so, I decided to write the logic by coding along and after the app was working I printed out each of the methods with console.log() to how each method was contributing to the working of the app and after that, I was completely able to understand the logic of the app.&lt;/p&gt;

&lt;p&gt;App link: &lt;a href="https://amazing-curran-015dd1.netlify.app/"&gt;https://amazing-curran-015dd1.netlify.app/&lt;/a&gt;&lt;br&gt;
Source code on Github: &lt;a href="https://github.com/saqibs3291/myClock_APP"&gt;https://github.com/saqibs3291/myClock_APP&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>html</category>
      <category>css</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Ping Pong Scorekeeper Widget</title>
      <dc:creator>Saqib Suleman</dc:creator>
      <pubDate>Fri, 19 Feb 2021 15:17:57 +0000</pubDate>
      <link>https://dev.to/saqibs3291/ping-pong-scorekeeper-widget-3emb</link>
      <guid>https://dev.to/saqibs3291/ping-pong-scorekeeper-widget-3emb</guid>
      <description>&lt;p&gt;After going through the basic JavaScript in the Web Developer Bootcamp course by Colt Steele, I moved on to functions and Document Object Model(DOM). Once I got enough practice with functions and manipulating DOM objects by doing the course's coding exercises, I decided to do a code-along project of a scorekeeper widget, specifically for Ping Pong. Bulma was used as a CSS framework for the styling of the widget.&lt;/p&gt;

&lt;p&gt;Before adding the logic for the widget with JavaScript, basic HTML was added to layout the content on the page. A "Player 1" button, a "Player 2" button and a "Reset" button were added for manipulating the widget. A "select" was also added to determine the score up to which the game will be played.&lt;/p&gt;

&lt;p&gt;You can check out the widget at vigorous-blackwell-9259c4.netlify.app.&lt;/p&gt;

&lt;p&gt;Source code can be found at Github: github.com/saqibs3291/scoreKeeper_widget&lt;/p&gt;

</description>
      <category>html</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Talking about "for" and "while" loops in JavaScript</title>
      <dc:creator>Saqib Suleman</dc:creator>
      <pubDate>Wed, 10 Feb 2021 18:02:26 +0000</pubDate>
      <link>https://dev.to/saqibs3291/talking-about-for-and-while-loops-in-javascript-46f9</link>
      <guid>https://dev.to/saqibs3291/talking-about-for-and-while-loops-in-javascript-46f9</guid>
      <description>&lt;p&gt;Looping in JavaScript is a time-efficient method to actually run a code more than once according to the requirement. Loops are very helpful in most cases and save a great deal of time and effort. There is various type of loops that are used in different situations as explained below:&lt;/p&gt;

&lt;p&gt;For Loops&lt;br&gt;
For loops are used where some code is to be repeated a number of time that can be predetermined by giving it specific instructions such as&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;for (let i=1; i&amp;lt;=6; i++){
    console.log("Da ba dee da ba daa");
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;While Loops&lt;br&gt;
While loops are used where it cannot be pre-determined how many times the code will actually run. In while loops, the code keeps repeating "while" the given condition is not satisfied as shown below&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;while (i &amp;lt; 10) {
  text += "The number is " + i;
  i++;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>javascript</category>
      <category>loops</category>
      <category>100daysofcode</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Decision Making and Loops in JavaScript</title>
      <dc:creator>Saqib Suleman</dc:creator>
      <pubDate>Tue, 09 Feb 2021 10:30:08 +0000</pubDate>
      <link>https://dev.to/saqibs3291/decision-making-and-loops-in-javascript-1ddb</link>
      <guid>https://dev.to/saqibs3291/decision-making-and-loops-in-javascript-1ddb</guid>
      <description>&lt;p&gt;There are situations when we want to run the code at different conditions, such as, if one condition applies run a particular code, if another condition applies another code is run. This is prioritized with "if" and "else if" conditionals as follows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function getColor(phrase){
   if (phrase === "stop"){
       console.log("red");
   } else if (phrase === "slow"){
       console.log("yellow");
   } else if (phrase === "go"){
       console.log("green");
   } else {
       console.log("purple");
   }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We can run codes in multiple loops if we want to with the help of loops. With loops, our code runs until a certain condition is satisfied such as:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;for (let i = 25; i &amp;gt;= 0; i-=5) {
    console.log(i)
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>html</category>
      <category>css</category>
      <category>javascript</category>
      <category>100daysofcode</category>
    </item>
    <item>
      <title>Arrays and Object Literals in JavaScript</title>
      <dc:creator>Saqib Suleman</dc:creator>
      <pubDate>Tue, 09 Feb 2021 10:29:59 +0000</pubDate>
      <link>https://dev.to/saqibs3291/arrays-and-object-literals-in-javascript-44o7</link>
      <guid>https://dev.to/saqibs3291/arrays-and-object-literals-in-javascript-44o7</guid>
      <description>&lt;p&gt;Arrays are like a set of primitive types that is used to store information in them in the form of numbers, strings, booleans etc. Arrays can be modified by adding or removing data.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let lottoNumbers = [1, 2, 3, 4, 5, 6];
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Object literals are also like arrays except for the fact that data is stored in them with a key. Every primitive type data that is stored in them has a key assigned to it which can then be called out to display or modify that data.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let product = {
    name: "Gummy Bears",
    inStock: true,
    price: 1.99,
    flavors: ["grape","apple","cherry"]
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>html</category>
      <category>css</category>
      <category>javascript</category>
      <category>100daysofcode</category>
    </item>
    <item>
      <title>Learning the Primitive types of JavaScript</title>
      <dc:creator>Saqib Suleman</dc:creator>
      <pubDate>Tue, 09 Feb 2021 10:29:49 +0000</pubDate>
      <link>https://dev.to/saqibs3291/learning-the-primitive-types-of-javascript-2oke</link>
      <guid>https://dev.to/saqibs3291/learning-the-primitive-types-of-javascript-2oke</guid>
      <description>&lt;p&gt;Firstly we learned about the primitive types Numbers and Strings, which are just as the name suggest that if we input number they are treated as a mathematical number and strings are treated as a string of information that we have inserted. Next up, we see Booleans which are just a true and false response from the script and other primitive types which are null meaning empty and undefined meaning not-defined or non-existing in our script.&lt;/p&gt;

</description>
      <category>html</category>
      <category>css</category>
      <category>100daysofcode</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Starting with JavaScript</title>
      <dc:creator>Saqib Suleman</dc:creator>
      <pubDate>Tue, 09 Feb 2021 10:29:38 +0000</pubDate>
      <link>https://dev.to/saqibs3291/starting-with-javascript-2eng</link>
      <guid>https://dev.to/saqibs3291/starting-with-javascript-2eng</guid>
      <description>&lt;p&gt;Ahhhh. Feels like an era spent on HTML and CSS but finally graduated both of them and now starting with JavaScript. Finally, we get to the verb of our Web developer bootcamp journey with which we can actually make our site do something other than just displaying content nicely. After a nice meet and greet the language, we dive into the basics of JavaScript such as learning about the primitive types which include Numbers, Strings, Booleans, Null and Undefined. We ran our JavaScript code in the Google Chrome Console initially just for the sake of simplicity. We learn about all the primitive types one by one in the upcoming sections.&lt;/p&gt;

</description>
      <category>html</category>
      <category>css</category>
      <category>100daysofcode</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Trafalgar (Figma Project)</title>
      <dc:creator>Saqib Suleman</dc:creator>
      <pubDate>Tue, 09 Feb 2021 10:29:22 +0000</pubDate>
      <link>https://dev.to/saqibs3291/trafalgar-figma-project-4o61</link>
      <guid>https://dev.to/saqibs3291/trafalgar-figma-project-4o61</guid>
      <description>&lt;p&gt;After completing the Museum of Candy Project, I felt like I needed more practice with HTML and CSS before moving on to JavaScript. So, a friend of mine shared a Figma webpage design and suggested that I clone that webpage as close as possible. I took up the task and started writing the HTML for that webpage section by section and I also kept styling it simultaneously so that I would have a better idea of my progress. I stumbled across many small issues when cloning that webpage. The issue that had me scratching my head was that I couldn't center some of my content but after revisiting some of the lectures about bootstrap grid, I finally figured it out. Beside that, I also got a bit familiar working with SVGs that I exported from Figma to use in my webpage. After adding all the content and styling it properly, I made my webpage responsive across multiple breakpoints by using the bootstrap grid system.&lt;/p&gt;

&lt;p&gt;I have deployed that webpage on Netlify under the link zealous-jang-e14cfe.netlify.app. You can also find the source code on Github.&lt;/p&gt;

&lt;p&gt;Github link: github.com/saqibs3291/trafalgar&lt;/p&gt;

&lt;p&gt;Orignal Figma design: figma.com/file/s69MNKYf4OEwrhqPPo5aQL/trafa..&lt;/p&gt;

</description>
      <category>html</category>
      <category>css</category>
      <category>javascript</category>
      <category>100daysofcode</category>
    </item>
    <item>
      <title>Museum of Candy Project</title>
      <dc:creator>Saqib Suleman</dc:creator>
      <pubDate>Tue, 09 Feb 2021 10:29:11 +0000</pubDate>
      <link>https://dev.to/saqibs3291/museum-of-candy-project-3gic</link>
      <guid>https://dev.to/saqibs3291/museum-of-candy-project-3gic</guid>
      <description>&lt;p&gt;After I completed the CSS section of the Web Developer Bootcamp including Bootstrap, we were pretty much done with learning basic CSS, now all that remained was to bring all the skills, that I picked up in the CSS section, to practice. For that, I recreated a simple webpage that was a code-along exercise of the course where we added a navigational bar, a header section and 3 more lorem ipsum sections just to practice responsive images and order of columns. In this exercise, I learned how to make a website responsive and got to see how we can use bootstrap to layout our content properly. It was a good overall practice of the basic HTML and CSS properties that I had learned in the previous section.&lt;/p&gt;

&lt;p&gt;I have deployed that site on Netlify under the link infallible-wozniak-d9d3e2.netlify.app. You can also find the source code on Github.&lt;/p&gt;

&lt;p&gt;Github link: github.com/saqibs3291/Museum-of-Candy&lt;/p&gt;

</description>
      <category>html</category>
      <category>css</category>
      <category>100daysofcode</category>
      <category>javascript</category>
    </item>
    <item>
      <title>CSS Framework(Bootstrap)</title>
      <dc:creator>Saqib Suleman</dc:creator>
      <pubDate>Tue, 09 Feb 2021 10:28:55 +0000</pubDate>
      <link>https://dev.to/saqibs3291/css-framework-bootstrap-3bmb</link>
      <guid>https://dev.to/saqibs3291/css-framework-bootstrap-3bmb</guid>
      <description>&lt;p&gt;When we are working on a big project, adding styles to all of our content can be a lot of work, especially when we are new to programming and are not not familiar with the tips and tricks to get our work done quickly. So, there are CSS frameworks that help us add styles to our content in short time without having to style each of our individual element. When we use a CSS framework like Bootstrap, we don't need to write as much CSS code as we would have to if we are not using the framework. In Bootstrap, all of the CSS is pre-written and we just call out a particular style for our content by simply adding the specific class in our HTML markup which then picks up that particular style from Bootstrap style sheet. This is a much more time efficient process of adding styles to our markup. Other than this, adding navigational bars and laying out our content on the webpage with the grid system is also relatively simple and it helps us making our webpage responsive as well.&lt;/p&gt;

&lt;p&gt;Note: The Bootstrap styles is added before our own style sheet if we need to write some extra CSS so that our CSS sheet can over-write the pre-defined style sheet of Bootstrap.&lt;/p&gt;

</description>
      <category>html</category>
      <category>css</category>
      <category>javascript</category>
      <category>100daysofcode</category>
    </item>
    <item>
      <title>The CSS Box Model(Flexbox)</title>
      <dc:creator>Saqib Suleman</dc:creator>
      <pubDate>Tue, 09 Feb 2021 10:28:34 +0000</pubDate>
      <link>https://dev.to/saqibs3291/the-css-box-model-flexbox-1hoh</link>
      <guid>https://dev.to/saqibs3291/the-css-box-model-flexbox-1hoh</guid>
      <description>&lt;p&gt;Understanding the box model of CSS makes positioning and aligning our content much easier. In our CSS box model, we understand that every element has its own box model, such as if we add a paragraph to our webpage, that paragraph has a blue-box first which is the content of the paragraph, then there is padding between the content and the border of the content, then comes the border of our paragraph and outside of that border is the margin that our content is keeping from other content. In this way, we can position our content, in this case a paragraph, relative to other content on the web page.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--srpVdy3Y--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/5vf68wgctdtqnrbtk6r8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--srpVdy3Y--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/5vf68wgctdtqnrbtk6r8.png" alt="image"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After learning the Flexbox, I made a small pricing table project which you can check on Github. Github link: github.com/saqibs3291/pricing-table&lt;/p&gt;

</description>
      <category>html</category>
      <category>css</category>
      <category>javascript</category>
      <category>100daysofcode</category>
    </item>
    <item>
      <title>Common CSS properties</title>
      <dc:creator>Saqib Suleman</dc:creator>
      <pubDate>Tue, 09 Feb 2021 10:28:14 +0000</pubDate>
      <link>https://dev.to/saqibs3291/common-css-properties-cie</link>
      <guid>https://dev.to/saqibs3291/common-css-properties-cie</guid>
      <description>&lt;p&gt;With the help of CSS, we can style our HTML in any way we want. Most common properties of CSS that are used to style our content include background, background color, background image, background position, border, border style, border color, margin, padding, display, font size, font family, font weight, text align, text decoration, visibility, width etc. CSS units which can be absolute such as px and relative such as ems and rems also play an important role in understanding CSS.&lt;/p&gt;

&lt;p&gt;Note: It is possible to add style to our markup right in the HTML file but it is not recommended, a separate style sheet should be made which can then be linked with our HTML file.&lt;/p&gt;

</description>
      <category>html</category>
      <category>css</category>
      <category>javascript</category>
      <category>100daysofcode</category>
    </item>
  </channel>
</rss>
