<?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: Abdullah A Malik</title>
    <description>The latest articles on DEV Community by Abdullah A Malik (@_abdullahamalik).</description>
    <link>https://dev.to/_abdullahamalik</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%2F502577%2F0252f0b7-97e1-4d6d-b226-5e9b9250c938.jpg</url>
      <title>DEV Community: Abdullah A Malik</title>
      <link>https://dev.to/_abdullahamalik</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/_abdullahamalik"/>
    <language>en</language>
    <item>
      <title>4 Handy Features of a Browser Console</title>
      <dc:creator>Abdullah A Malik</dc:creator>
      <pubDate>Tue, 03 Nov 2020 23:41:24 +0000</pubDate>
      <link>https://dev.to/_abdullahamalik/4-handy-features-of-a-browser-console-2jfn</link>
      <guid>https://dev.to/_abdullahamalik/4-handy-features-of-a-browser-console-2jfn</guid>
      <description>&lt;p&gt;Although &lt;code&gt;console.log()&lt;/code&gt; is by far the most used console function in the development tools of all modern web browsers. There is more to it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Console Output
&lt;/h3&gt;

&lt;p&gt;The browser console has four different output functions. You can use different functions to distinguish the type of generated output.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;code&gt;console.log(‘simple log message’)&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;console.info(‘info: important information’)&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;console.warn(‘warning: something might go wrong’)&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;console.error(‘error: something went wrong’)&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;

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

&lt;h3&gt;
  
  
  Console Style
&lt;/h3&gt;

&lt;p&gt;A lot of messages in the browser console can be overwhelming sometimes and you might lose track of the message you are looking for. Console styles help you style your output messages so you can distinguish them easily.&lt;/p&gt;

&lt;p&gt;You can use the %c directive to apply CSS styles.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;console.log("Styles help you distinguish %c between different texts", "color: orange; background-color:green;")&lt;/code&gt;;&lt;/p&gt;

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

&lt;h3&gt;
  
  
  Console Grouping
&lt;/h3&gt;

&lt;p&gt;Console groups are a good way to group identical console messages together. It increases the console messages' readability. You can group different types of console messages together.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;console.log("outside group")&lt;/code&gt;;&lt;br&gt;
&lt;code&gt;console.group("Group starts")&lt;/code&gt;;&lt;br&gt;
&lt;code&gt;console.log("first group message")&lt;/code&gt;;&lt;br&gt;
&lt;code&gt;console.log("second group message")&lt;/code&gt;;&lt;br&gt;
&lt;code&gt;console.warn("group warning")&lt;/code&gt;;&lt;br&gt;
&lt;code&gt;console.error("group error")&lt;/code&gt;;&lt;br&gt;
&lt;code&gt;console.groupEnd()&lt;/code&gt;;&lt;br&gt;
&lt;code&gt;console.log("outside group again")&lt;/code&gt;;&lt;/p&gt;

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

&lt;h3&gt;
  
  
  Console Timers
&lt;/h3&gt;

&lt;p&gt;Console timers are helpful when debugging your code and you want to check how long does your code takes to run.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;console.time("timer”)&lt;/code&gt;;&lt;br&gt;
&lt;code&gt;console.timeLog("timer”)&lt;/code&gt;;&lt;br&gt;
&lt;code&gt;// Do your stuff here.&lt;/code&gt;&lt;br&gt;
&lt;code&gt;console.timeEnd("timer”)&lt;/code&gt;;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>development</category>
    </item>
    <item>
      <title>Publish a landing page on Github pages in 5 minutes!</title>
      <dc:creator>Abdullah A Malik</dc:creator>
      <pubDate>Sat, 31 Oct 2020 00:17:38 +0000</pubDate>
      <link>https://dev.to/_abdullahamalik/how-to-publish-a-landing-page-on-github-pages-in-5-minutes-3in8</link>
      <guid>https://dev.to/_abdullahamalik/how-to-publish-a-landing-page-on-github-pages-in-5-minutes-3in8</guid>
      <description>&lt;p&gt;Github pages make it super simple to publish your static webpages quickly. You need to follow the following steps which will not take more than 5 minutes and your webpage will be published live.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Create a new repository on #Github. Keep the default settings. Give it a name i.e 'landing-page'.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;code&gt;git clone https://github.com{your_user_name}/landing-page&lt;/code&gt; on your local machine.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Add your landing page files.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Stage your files &lt;code&gt;git add .&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Commit your files &lt;code&gt;git commit -m "first commit"&lt;/code&gt;.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Create a new branch called gh-pages &lt;code&gt;git checkout -b gh-pages&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Push your changes to #Github &lt;code&gt;git push origin gh-pages&lt;/code&gt;&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;And your static landing page will be up and running on https://{your_username}.github.io/landing-page/&lt;/p&gt;

</description>
      <category>github</category>
      <category>webdev</category>
      <category>html</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
