<?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: Jovan M.</title>
    <description>The latest articles on DEV Community by Jovan M. (@miljkovicjovan).</description>
    <link>https://dev.to/miljkovicjovan</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%2F563110%2Fe9b0327c-d4cc-4e4f-a4e0-3da4ac10c7ab.jpg</url>
      <title>DEV Community: Jovan M.</title>
      <link>https://dev.to/miljkovicjovan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/miljkovicjovan"/>
    <language>en</language>
    <item>
      <title>How to Setup and Run C on macOS</title>
      <dc:creator>Jovan M.</dc:creator>
      <pubDate>Sun, 07 Mar 2021 19:11:48 +0000</pubDate>
      <link>https://dev.to/miljkovicjovan/how-to-setup-and-run-c-on-macos-4knf</link>
      <guid>https://dev.to/miljkovicjovan/how-to-setup-and-run-c-on-macos-4knf</guid>
      <description>&lt;h1&gt;
  
  
  This article is part of my YouTube video series : &lt;a href="https://www.youtube.com/watch?v=wKhuVuzb2B0&amp;amp;t=1s"&gt;Link&lt;/a&gt;
&lt;/h1&gt;

&lt;h1&gt;
  
  
  Understanding what is needed to write C
&lt;/h1&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;You will need a &lt;strong&gt;compiler&lt;/strong&gt; to convert your source code into executable code. (for windows I recommend using &lt;a href="http://mingw-w64.org/doku.php"&gt;WinGW&lt;/a&gt;, if you are using macOS you have a default compiler installed)&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;You will also need a &lt;strong&gt;text editor&lt;/strong&gt; or an &lt;strong&gt;IDE&lt;/strong&gt; these are used for writing and saving your C code. If you are on Windows the Notepad can be used as a text editor (which I don't personally recommend because you can get an IDE free and simply). An IDE is an Integrated Development Enviroment that helps you write code. There are many features and plugins that make an IDE the best way to code. &lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;*Popular IDE's: Atom, Sublime Text, Gedit and Visual Studio Code.&lt;/p&gt;

&lt;h1&gt;
  
  
  How to set up Visual Studio Code
&lt;/h1&gt;

&lt;p&gt;First head over to &lt;a href="https://code.visualstudio.com/download"&gt;Visual Studio Code&lt;/a&gt;, find and download the version and operating system you need. &lt;/p&gt;

&lt;p&gt;After that open up Visual Studio Code and head over to the Extensions on the left panel. There you will need to install two extensions. The first one is for the intellisence and called C/C++ made by Microsoft. The second one is a code runner and I use the one made by Jun Huan.&lt;/p&gt;

&lt;h1&gt;
  
  
  You are ready to go with C
&lt;/h1&gt;

&lt;p&gt;If you still have problems check out my &lt;a href="https://www.youtube.com/watch?v=wKhuVuzb2B0"&gt;video&lt;/a&gt; explaining the step by step here.&lt;/p&gt;

&lt;p&gt;Thanks for reading,&lt;br&gt;
Take care&lt;br&gt;
Jovan&lt;/p&gt;

</description>
      <category>programming</category>
      <category>tutorial</category>
      <category>codenewbie</category>
      <category>computerscience</category>
    </item>
    <item>
      <title>Making a TO-DO list web app using simple JavaScript </title>
      <dc:creator>Jovan M.</dc:creator>
      <pubDate>Wed, 10 Feb 2021 12:55:35 +0000</pubDate>
      <link>https://dev.to/miljkovicjovan/making-a-to-do-list-web-app-using-simple-javascript-2a0c</link>
      <guid>https://dev.to/miljkovicjovan/making-a-to-do-list-web-app-using-simple-javascript-2a0c</guid>
      <description>&lt;p&gt;In this tutorial I will show you how to make a tool that I use almost every day. It is a TO-DO list making web app. It helps me to organise and plan out my day. It makes for a great beginner project for JavaScript. &lt;/p&gt;

&lt;p&gt;Here you can find the &lt;a href="https://github.com/miljkovicjovan/to-do-site"&gt;Source Code&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Setting up the base HTML&lt;/strong&gt;
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;html lang="en-GB"&amp;gt;
&amp;lt;head&amp;gt;
    &amp;lt;meta charset="utf-8"&amp;gt;
    &amp;lt;meta name="viewport" content="width:device-width, initial-scale:1.0"&amp;gt;
    &amp;lt;title&amp;gt;to-do&amp;lt;/title&amp;gt;
    &amp;lt;link rel="stylesheet" href="style.css"&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;div class="container"&amp;gt;
        &amp;lt;h1&amp;gt;To - Do&amp;lt;/h1&amp;gt;

        &amp;lt;div class="col-12"&amp;gt;
            &amp;lt;input id="userInput" type="text" placeholder="New item..." maxlength="150"&amp;gt;
            &amp;lt;button id="enter"&amp;gt;&amp;lt;/button&amp;gt;
        &amp;lt;/div&amp;gt;


        &amp;lt;div class="listItems col-12"&amp;gt;
            &amp;lt;ul class="col-12 offset-0 col-sm-8 offset-sm-2"&amp;gt;&amp;lt;/ul&amp;gt;
        &amp;lt;/div&amp;gt;

    &amp;lt;/div&amp;gt;

    &amp;lt;script type="text/javascript" src="external.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;As you can see we have an &lt;code&gt;ul&lt;/code&gt; element with no list items. The list items will be created when the button is entered. We will achieve this with the JavaScript code.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;JavaScript logic&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;1.First let's set up the variables we will use&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var enterButton = document.getElementById("enter");
var input = document.getElementById("userInput");
var ul = document.querySelector("ul");
var item = document.getElementsByTagName("li");
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;2.Make functions that calculate length of input and li&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function inputLength(){
    return input.value.length;
} 

function listLength(){
    return item.length;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;3.Make the function that creates the list element&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function createListElement() {
    var li = document.createElement("li"); // creates an element "li"
    li.appendChild(document.createTextNode(input.value)); //makes text from input field the li text
    ul.appendChild(li); //adds li to ul
    input.value = ""; //Reset text input field


    //START STRIKETHROUGH
    // because it's in the function, it only adds it for new items
    function crossOut() {
        li.classList.toggle("done");
    }

    li.addEventListener("click",crossOut);//when the li is clicked is marked done with the crossOut() function
    //END STRIKETHROUGH


    // START ADD DELETE BUTTON
    var dBtn = document.createElement("button");
    dBtn.appendChild(document.createTextNode("X"));
    li.appendChild(dBtn);
    dBtn.addEventListener("click", deleteListItem);//when X is clicked the li is deleted
    // END ADD DELETE BUTTON


    //ADD CLASS DELETE (DISPLAY: NONE)
    function deleteListItem(){
        li.classList.add("delete")//this is a class that makes display: none; of the li 
    }
    //END ADD CLASS DELETE
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This function makes an li element and appends it to the ul element. This function also allows for the highlight affect. And adds the button to delete the list item.&lt;/p&gt;

&lt;p&gt;4.Make functions and event listeners that will run the CreateListItem function when Enter clicked or button clicked.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function addListAfterClick(){
    if (inputLength() &amp;gt; 0) { //makes sure that an empty input field doesn't create a li
        createListElement();
    }
}

function addListAfterKeypress(event) {
    if (inputLength() &amp;gt; 0 &amp;amp;&amp;amp; event.which ===13) { //this now looks to see if you hit "enter"/"return"
        //the 13 is the enter key's keycode, this could also be display by event.keyCode === 13
        createListElement();
    } 
}


enterButton.addEventListener("click",addListAfterClick);

input.addEventListener("keypress", addListAfterKeypress);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Style with CSS
&lt;/h2&gt;

&lt;p&gt;Here is the code I used, I went for a simple look to make my routine easier you can choose to do whatever you want in this part since the important code is finished.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;body {
    background: #04A1BF;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
}


h1 {
    padding-top: 1rem;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 4rem;
}

#enter {
    border: none;
    padding: 7px 18px;
    border-radius: 7px;
    color: #04A1BF;
    background-color: #025F70;
    transition: all 0.75s ease;
    -webkit-transition: all 0.75s ease;
    -moz-transition: all 0.75s ease;
    -ms-transition: all 0.75s ease;
    -o-transition: all 0.75 ease;
    font-weight: normal;
}

#enter:hover{
    background-color: #02798F;
    color: #FFCD5D;
}

ul {
    text-align: left;
    margin-top: 20px;
}


li {
    list-style: none;
    padding: 10px 20px;
    color: #ffffff;
    text-transform: capitalize;
    font-weight: 600;
    border: 2px solid #025f70;
    border-radius: 5px;
    margin-bottom: 10px;
    background: #4EB9CD;
    transition: all 0.75s ease;
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -ms-transition: all 0.5s ease;
    -o-transition: all 0.5 ease;
}

li:hover {
    background: #76CFE0;
}

li &amp;gt; button {
    font-weight: normal;
    background: none;
    border: none;
    float: right;
    color: #025f70;
    font-weight: 800;
}

input {
    border-radius: 5px;
    min-width: 65%;
    padding: 10px;
    border: none;
}

.done {
    background: #51DF70 !important;
    color: #00891E;
}

.delete {
    display: none;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The important points in the CSS file are the classes and ids of the buttons and list items. Make sure to make them stand out when doing this.&lt;/p&gt;

&lt;h2&gt;
  
  
  Thank you for reading
&lt;/h2&gt;

&lt;p&gt;Hope this helps someone, if it didn't comment down bellow the problem you have and I will reach out.&lt;br&gt;
Thank you again, &lt;br&gt;
Stay safe, &lt;br&gt;
~Jovan&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>html</category>
      <category>css</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Number guessing game, beginner project in Python! </title>
      <dc:creator>Jovan M.</dc:creator>
      <pubDate>Fri, 05 Feb 2021 16:39:55 +0000</pubDate>
      <link>https://dev.to/miljkovicjovan/number-guessing-game-beginner-project-in-python-5c3j</link>
      <guid>https://dev.to/miljkovicjovan/number-guessing-game-beginner-project-in-python-5c3j</guid>
      <description>&lt;p&gt;This is one of the simplest &lt;strong&gt;Python&lt;/strong&gt; projects for beginners in Python and programming in general. We will be making a program that generates a number between two numbers and then the user has to guess the number generated. We will add some nice feautures like &lt;strong&gt;choosing a difficulty&lt;/strong&gt; and &lt;strong&gt;giving hints&lt;/strong&gt; to guess better. This project was actually my first Python project so I'm eager to teach you guys this, Let's get into it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Generating random numbers
&lt;/h2&gt;

&lt;p&gt;To generate a random number everytime a new game is started we are going to &lt;code&gt;import random&lt;/code&gt; and use the &lt;code&gt;randint()&lt;/code&gt; function like this.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import random
number = random.randint(1, 100)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;now if we use &lt;code&gt;print(number)&lt;/code&gt; it will print a number between 1 and 100. Later we will change 1 and 100 with min and max and the bounds of the number will change according to the difficulty choosed. Shown in the next step.&lt;/p&gt;

&lt;h2&gt;
  
  
  Choosing difficulty
&lt;/h2&gt;

&lt;p&gt;To choose the difficulty of the game we will just make maximum number allowed bigger and also we will have an option for a Custom Game. Where the user chooses the minimum and maximum allowed numbers.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;min = 1
while True:
    difficulty = input("Choose difficulty of guess (Easy/Medium/Hard/Impossible/Custom):")
    if difficulty == "easy" or difficulty == "Easy" or difficulty == "EASY":
        max = 10
        break
    elif difficulty == "medium" or difficulty == "Medium" or difficulty == "MEDIUM":
        max = 25
        break
    elif difficulty == "hard" or difficulty == "Hard" or difficulty == "HARD":
        max = 50
        break
    elif difficulty == "impossible" or difficulty == "Impossible" or difficulty == "IMPOSSIBLE":
        max = 200
        break
    elif difficulty == "custom" or difficulty == "Custom" or difficulty == "CUSTOM":
        min = int(input("What do you want the minimum number possible to be: "))
        max = int(input("What do you want the maximum number possible to be: "))
        break
    else: print("Wrong input, try again!")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;So this piece of code will be looped until a correct input is passed(do while). So at this point we add the min and max to the &lt;code&gt;randint()&lt;/code&gt; function. So the whole code looks like this :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;min = 1
while True:
    difficulty = input("Choose difficulty of guess (Easy/Medium/Hard/Impossible/Custom):")
    if difficulty == "easy" or difficulty == "Easy" or difficulty == "EASY":
        max = 10
        break
    elif difficulty == "medium" or difficulty == "Medium" or difficulty == "MEDIUM":
        max = 25
        break
    elif difficulty == "hard" or difficulty == "Hard" or difficulty == "HARD":
        max = 50
        break
    elif difficulty == "impossible" or difficulty == "Impossible" or difficulty == "IMPOSSIBLE":
        max = 200
        break
    elif difficulty == "custom" or difficulty == "Custom" or difficulty == "CUSTOM":
        min = int(input("What do you want the minimum number possible to be: "))
        max = int(input("What do you want the maximum number possible to be: "))
        break
    else: print("Wrong input, try again!")

import random
number = random.randint(min, max)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can test this by choosing different difficulties and printing the number to see if it's in the bounds given. &lt;/p&gt;

&lt;h2&gt;
  
  
  Checking the guess
&lt;/h2&gt;

&lt;p&gt;Now we have to add the ability to take input for the guess and assign that to a variable to check if it's the same as the number generated. Like this :&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;while True:
    #shows the bounds of the number and asks for guess
    print("A number from ", min, " to ", max, " has been generated.")
    guess = input("Guess the number: ")
    #allows only ints to be entered
    if guess.isdecimal() :
        guess = int(guess)
    else:
        continue

    #checks if correct and if wrong gives tips
    if guess == number :
        print("You guessed correctly!")
        break
    else:
        if guess &amp;gt; max or guess &amp;lt; min:
            print("You are out of minimum and maximum bounds you dummy")
            continue
        elif guess &amp;gt; number:
            print("Guess Lower")
        elif guess &amp;lt; number:
            print("Guess Higher")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Also if the guess isn't correct we have a message pop out to help the user to guess higher or lower.&lt;/p&gt;

&lt;h1&gt;
  
  
  Thanks for reading
&lt;/h1&gt;

&lt;p&gt;I hope this helps anyone starting out like it helped me. &lt;br&gt;
For any questions comment down bellow.&lt;br&gt;
You can get the full code here: &lt;a href="https://github.com/miljkovicjovan/number-guessing-game"&gt;GitHub&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thank you again, &lt;br&gt;
Stay safe,&lt;br&gt;
~Jovan&lt;/p&gt;

</description>
      <category>python</category>
      <category>beginners</category>
      <category>codenewbie</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Markdown Cheatsheet to bookmark</title>
      <dc:creator>Jovan M.</dc:creator>
      <pubDate>Fri, 29 Jan 2021 16:20:32 +0000</pubDate>
      <link>https://dev.to/miljkovicjovan/markdown-cheatsheet-to-bookmark-27im</link>
      <guid>https://dev.to/miljkovicjovan/markdown-cheatsheet-to-bookmark-27im</guid>
      <description>&lt;p&gt;Markdown is a lightweight markup language for creating formatted text using a plain-text editor. John Gruber and Aaron Swartz created Markdown in 2004 as a markup language that is appealing to human readers in its source code form.&lt;br&gt;
This article is made for a quick help for when you (and I) need to use markdown for a project.&lt;/p&gt;

&lt;h2&gt;
  
  
  Headers
&lt;/h2&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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ftxfqxacw3sw8b3rkot35.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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ftxfqxacw3sw8b3rkot35.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Also H1 and H2 can be written like this&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fprrt4xejylb24wt0b9g9.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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fprrt4xejylb24wt0b9g9.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Text styles
&lt;/h2&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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fy8ewoztvitsh647le76l.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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fy8ewoztvitsh647le76l.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Paragraphs
&lt;/h2&gt;

&lt;p&gt;You can end a paragraph with two or more spaces and then begin a new paragraph. Like this: &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Frkhgtg6op9l6u957q2ri.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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Frkhgtg6op9l6u957q2ri.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Blockquotes&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;are done &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Like this:&lt;/p&gt;
&lt;/blockquote&gt;


&lt;/blockquote&gt;
&lt;br&gt;
&lt;/blockquote&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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fmwk76l8t4fy4b029egie.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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fmwk76l8t4fy4b029egie.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Lists
&lt;/h2&gt;

&lt;p&gt;Unordered lists can be made in this ways&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fz75xs94kbttbi48hmg6k.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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fz75xs94kbttbi48hmg6k.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ordered lists can be made in this way&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F8197u75d95qceqdb4fen.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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F8197u75d95qceqdb4fen.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can also make sublists like this&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Frrdzr95joh8090opw21d.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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Frrdzr95joh8090opw21d.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can make task lists with checkboxes like this &lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fymy5t0tv2cz6lbub9y2z.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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fymy5t0tv2cz6lbub9y2z.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Code Blocks
&lt;/h2&gt;

&lt;p&gt;To make a code block (which uses the &lt;code&gt; element in HTML) by indenting a line with four spaces or a tab. You can also re-tab (or add an additional four spaces) for indentation inside your code. Like this:&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fjfy136itje4o6igutwcq.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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fjfy136itje4o6igutwcq.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/code&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Horizontal Rule
&lt;/h2&gt;

&lt;p&gt;Horizontal rules (&lt;/p&gt;
) are easily added with three or more asterisks or hyphens, with or without spaces.&lt;br&gt;
&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Ft20hhnu3vla9zp9vbn9j.png" alt="Alt Text"&gt;
&lt;h2&gt;
  
  
  Links
&lt;/h2&gt;

&lt;p&gt;Put the text to display in hard brackets [] followed by the url in parentheses (). You can also add a link title using quotes inside the parentheses. Relative paths work too.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fmlrq2t4hzwz8cohqxbal.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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fmlrq2t4hzwz8cohqxbal.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Markdown also supports reference style links.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Frk46q537vvlwcrzus2g3.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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Frk46q537vvlwcrzus2g3.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Images
&lt;/h2&gt;

&lt;p&gt;Images are done the same way as links but with an exclamation point in front!&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Flq8tb07m5jmqw744lju2.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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Flq8tb07m5jmqw744lju2.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Tables
&lt;/h2&gt;

&lt;p&gt;To make tables using markdown you can do it pretty easily. And has 2 different ways.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fh0ujnij8gg891tpmcx5e.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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fh0ujnij8gg891tpmcx5e.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Footnote
&lt;/h2&gt;

&lt;p&gt;Here is how to make footnotes.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F0fk7det0t40ourx6vyha.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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F0fk7det0t40ourx6vyha.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Miscellany
&lt;/h2&gt;

&lt;p&gt;Here's some stuff I don't use very often but some people may need it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Auto links for emails
&lt;/h3&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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F5qyrz65hks48z8jn3y75.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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F5qyrz65hks48z8jn3y75.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Escaping characters
&lt;/h3&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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fs7tdhspedcetvh3fmapp.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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fs7tdhspedcetvh3fmapp.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Keyboard keys
&lt;/h3&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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Frhk8nftschd48ddqto25.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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Frhk8nftschd48ddqto25.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That's it , I know there are more things but honestly I haven't used anything more than this. If you have anything you want me to add please comment and I will edit this.&lt;/p&gt;

&lt;p&gt;Hope this helps,&lt;br&gt;
Stay safe,&lt;br&gt;
~Jovan&lt;/p&gt;

</description>
      <category>markdown</category>
      <category>beginners</category>
      <category>programming</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>Build your own digital clock with JavaScript</title>
      <dc:creator>Jovan M.</dc:creator>
      <pubDate>Thu, 28 Jan 2021 11:57:42 +0000</pubDate>
      <link>https://dev.to/miljkovicjovan/build-your-own-digital-clock-with-javascript-4fkn</link>
      <guid>https://dev.to/miljkovicjovan/build-your-own-digital-clock-with-javascript-4fkn</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;Why should I try this mini project?&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;If you’re on a website or using web applications with a digital self counting clock, there’s a big chance it’s powered by JavaScript code. This means JavaScript clocks don’t just make for &lt;strong&gt;good JavaScript projects&lt;/strong&gt;, a JavaScript clock lets you get &lt;strong&gt;hands-on&lt;/strong&gt; with the kind of &lt;strong&gt;actual work&lt;/strong&gt; you’ll be doing as a JavaScript developer.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;What we want to have&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Here I list every &lt;strong&gt;feature&lt;/strong&gt; I want my &lt;em&gt;web clock&lt;/em&gt; to have &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Display &lt;strong&gt;current date&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Display &lt;strong&gt;current time&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Increment the time&lt;/strong&gt; on it's own (change every second)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cycle through different wallpapers&lt;/strong&gt; based on the time of day (morning, day, evening, night)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now I'll go into detail how I implemented every feauture&lt;/p&gt;

&lt;h2&gt;
  
  
  0. Base design
&lt;/h2&gt;

&lt;p&gt;Make the basic html structure&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html lang="en"&amp;gt;

    &amp;lt;head&amp;gt;
        &amp;lt;meta charset="utf-8"&amp;gt;
        &amp;lt;meta name="viewport" content="width:device-width, initial-scale:1.0"&amp;gt;
        &amp;lt;title&amp;gt;DATE AND TIME&amp;lt;/title&amp;gt;
        &amp;lt;link rel="stylesheet" href="style/style.css"&amp;gt;
    &amp;lt;/head&amp;gt;

    &amp;lt;body&amp;gt;
        &amp;lt;img src="" id="wallpaper"&amp;gt; &amp;lt;!-- here we will have the wallpaper change during the different times of the day --&amp;gt;
        &amp;lt;div class="hero"&amp;gt;
            &amp;lt;h3 id="print-date"&amp;gt;&amp;lt;/h3&amp;gt; &amp;lt;!-- spot for printing the date --&amp;gt;
            &amp;lt;h2 id="print-time"&amp;gt;&amp;lt;/h2&amp;gt; &amp;lt;!-- spot for printing the time --&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/body&amp;gt;

&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  1. Display current time
&lt;/h2&gt;

&lt;p&gt;We create the js folder in our project folder and in it we make a file named time.js . Here we start with our JS code.&lt;/p&gt;

&lt;p&gt;We set a var called noon so we can distinguish between AM and PM&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var noon = 12;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We make a function that will show the current time&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var showCurrentTime = function(){
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We set a var currentTime (For info about Date(); see &lt;a href="https://www.w3schools.com/jsref/jsref_obj_date.asp" rel="noopener noreferrer"&gt;here&lt;/a&gt;)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var currentTime = new Date();
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can get a lot of outputs from Date(); but in this script we will use these:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; var hours = currentTime.getHours();
 var minutes = currentTime.getMinutes();
 var seconds = currentTime.getSeconds();
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We set a variable for the meridian (AM/PM)&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var meridian = "AM";
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now we use if statements to see if it is AM Or PM based on the hours variable&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; if (hours &amp;gt;= noon)
    {
        meridian = "PM";
    }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And if it is not PM the time needs to be converted to the 12 hour format like this&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;if (hours &amp;gt; noon)
    {
        hours = hours - 12;
    }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now we need to set the minutes to display correctly because we need to display it 12:05:45 and not 12:5:45 so when its less than 10 we append to the left a 0 like this&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;if (minutes &amp;lt; 10)
    {
        minutes = "0" + minutes;
    }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Also the same is done for seconds&lt;/p&gt;

&lt;p&gt;Now we set it all up together in one variable to be displayed in the &lt;em&gt;print-time&lt;/em&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var clockTime = hours + ':' + minutes + ':' + seconds + ' ' + meridian;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And now we display it in the &lt;em&gt;print-time&lt;/em&gt; class in HTML&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;document.getElementById("print-time").innerHTML = clockTime;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;we close the function here&lt;/p&gt;

&lt;h2&gt;
  
  
  2. &lt;strong&gt;Increment the time&lt;/strong&gt; on it's own
&lt;/h2&gt;

&lt;p&gt;We make a new function&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var updateClock = function() 
{
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Inside we put the previous function&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;showCurrentTime();
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;we close the function and we call it&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;};
updateClock();
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then we set an universal variable of a second&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var oneSecond = 1000;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And we make it update(reload) the clock every second like this&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;setInterval( updateClock, oneSecond);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now When you add the script in the body of your HTML and reload your website you will get a really ugly clock but make sure it works , if it doesn't revist the steps above.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Display current date
&lt;/h2&gt;

&lt;p&gt;Let's now make another file in the js folder named date.js and start coding&lt;br&gt;
You are already familiar with the Date(); method now we need different outputs&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var today = new Date();
var years = today.getFullYear();
var months = today.getMonth();
var days = today.getDate();
var day = today.getDay();
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Also we add a variable for the superscript ordinals(st nd rd th) so we can say 27th 3rd 2nd 1st of February&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var endOfDay;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now the getMonth returns values from 0 to 11 and we need to translate that to string variables like "March" we do that like this&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;if (months == 0){months = "January"};
if (months == 1){months = "February"};
if (months == 2){months = "March"};
if (months == 3){months = "April"};
if (months == 4){months = "May"};
if (months == 5){months = "June"};
if (months == 6){months = "July"};
if (months == 7){months = "August"};
if (months == 8){months = "September"};
if (months == 9){months = "October"};
if (months == 10){months = "November"};
if (months == 11){months = "December"};
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;We do the same for days because getDay returns values from 0 to 6 and we need to turn that into string like Friday&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;if (day == 0){day = "Sunday"};
if (day == 1){day = "Monday"};
if (day == 2){day = "Tuesday"};
if (day == 3){day = "Wendesday"};
if (day == 4){day = "Thursday"};
if (day == 5){day = "Friday"};
if (day == 6){day = "Saturday"};
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And now for the superscript ordinals we need to set for 1,21,31 to be st for 2,22 nd for 3,23 rd and for the rest th and append that to the day variable so it look like 21st&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;if (days == 1){endOfDay = "st"};
if (days == 2){endOfDay = "nd"};
if (days == 3){endOfDay = "rd"};
if (days == 21){endOfDay = "st"};
if (days == 22){endOfDay = "nd"};
if (days == 23){endOfDay = "rd"};
if (days == 31){endOfDay = "st"};
if (days &amp;gt; 3 || days &amp;lt; 21 || days &amp;gt; 23){endOfDay = "th"};
days += endOfDay;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;And for the end we just need to print everything we want in the format we want like Thursday, January 28th 2021&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;document.getElementById("print-date").innerHTML = day + ", " + months + " " + days + ", " + years;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Don't forget to add the the script to the body element in your HTML and when you reload you will have today's date.&lt;br&gt;
It is still ugly but don't worry first we need to make everything work and after that the styling comes.&lt;/p&gt;
&lt;h2&gt;
  
  
  4. Cycle through different wallpapers based on the time
&lt;/h2&gt;

&lt;p&gt;Now to do this is simple you need to go to your time.js file in the updateClock and do the following.&lt;/p&gt;

&lt;p&gt;Add a variable to see what hour of the day it is&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var time = new Date().getHours();
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now let's add the a string variable image that will hold the path to the image&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var image = "images/day.jpg";
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now it is set to day.jpg but it doesn't matter because it will change after one of the following if statements are met&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;if (time &amp;gt; 6 &amp;amp;&amp;amp; time &amp;lt; 12)
    {
        image = "images/morning.jpg";
    }
    else if (time &amp;gt; 12 &amp;amp;&amp;amp; time &amp;lt; 17)
    {
        image = "images/day.jpg";
    }
    else if (time &amp;gt; 17 &amp;amp;&amp;amp; time &amp;lt; 21)
    {
        image = "images/evening.jpg";
    }
    else if (time &amp;gt; 21 &amp;amp;&amp;amp; time &amp;gt; 6){
        image = "images/night.jpg";
    }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now make sure you have a folder images with morning.jpg day.jpg evening.jpg and night.jpg and this will work&lt;/p&gt;

&lt;p&gt;After that we need to assign the wallpaper id in the HTML the path for what image to be and we do it like this&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;wallpaper.src = image;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;now this will automatically update because this function is happening every second remember?&lt;br&gt;
So lets see how it looks.&lt;br&gt;
ohh.. yeah everything breaks we are missing CSS so what are waiting for.&lt;/p&gt;
&lt;h2&gt;
  
  
  5. UI
&lt;/h2&gt;

&lt;p&gt;Now this part is the easiest I encourage you to do however you like it but i will provide my code just for refrence and for some initial help in the right direction.&lt;/p&gt;

&lt;p&gt;This part will make the website unscrollable , it will add a nice font it will center the hero div and make the background fit nicely&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&amp;amp;display=swap');

/* not allow scrolling */
html {
    overflow: hidden;
}

body {
    margin: 0;
    font-family: Roboto;
}

img {
    width: 100%;
    height: 100%;
}

.hero {
    text-align: center;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now this part (final part) will make the text come infront make it nicer bigger add a border some blur and nice effect to make it stand out.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.hero h3 {
    padding: 0.6rem;
    font-size: 3rem;
    position: absolute;
    backdrop-filter: blur(3px);
    letter-spacing: 0.1rem;
    color: rgb(250, 245, 245);
    border-radius: 2rem;
    border: 0.15rem solid rgb(184, 182, 182);
    top: 11rem;
    left: 22%;
    right: 22%;
    width: 56%;
}

.hero h2 {
    position: absolute;
    font-size: 3.5rem;
    letter-spacing: 0.1rem;
    color: rgb(243, 235, 235);
    backdrop-filter: blur(30px);
    border: 0.3rem solid rgb(184, 182, 182);
    border-radius: 1rem;
    top: 18rem;
    left: 35%;
    right: 35%;
    width: 30%;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Final product
&lt;/h1&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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fkgl4xiwbaelk7utz94ph.gif" 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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fkgl4xiwbaelk7utz94ph.gif" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The whole project with the pictures and evrything used is in the &lt;a href="https://github.com/miljkovicjovan/really-cool-clock" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;(star it if you like it (: )&lt;/p&gt;

&lt;h3&gt;
  
  
  &lt;strong&gt;Thank you for reading&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;Thanks so much,&lt;br&gt;
Stay safe,&lt;br&gt;
~Jovan&lt;/p&gt;

</description>
      <category>begginers</category>
      <category>javascript</category>
      <category>tutorial</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Why should you learn C in 2021?</title>
      <dc:creator>Jovan M.</dc:creator>
      <pubDate>Wed, 27 Jan 2021 10:41:38 +0000</pubDate>
      <link>https://dev.to/miljkovicjovan/why-should-you-learn-c-in-2021-3k6j</link>
      <guid>https://dev.to/miljkovicjovan/why-should-you-learn-c-in-2021-3k6j</guid>
      <description>&lt;p&gt;For a language created in &lt;em&gt;1972&lt;/em&gt;, C is a middle-level programming language, but still remains very close to hardware, which makes it very useful for programming in conditions of limited resources or in situations where the &lt;em&gt;speed of execution&lt;/em&gt; is critical.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Why start with C?&lt;/strong&gt;
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;C is not specialized to any particular area of application and is quite &lt;strong&gt;general&lt;/strong&gt;, which makes it suitable for learning the fundamentals of computer programming.&lt;/li&gt;
&lt;li&gt;Helps to understand the &lt;strong&gt;fundamentals of Computer Theories&lt;/strong&gt;. Most of the theories related to computers like Computer Networks, Compiler Designing, Computer Architecture, Operating Systems are based on C programming language and requires a good knowledge of C programming if you are working on them.&lt;/li&gt;
&lt;li&gt;C is very fast in terms of execution time. Programs written and compiled in C executes &lt;em&gt;much faster&lt;/em&gt; than compared to any other programming language.&lt;/li&gt;
&lt;li&gt;C is extensively used in &lt;strong&gt;Embedded Programming&lt;/strong&gt;. Embedded Programming is also referred to as micro-controller programming, where C program is used to control micro-controllers.&lt;/li&gt;
&lt;li&gt;C can be useful both in Embedded Systems and Data Science&lt;/li&gt;
&lt;li&gt;Most modern operating systems are written in C&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Your first program in C&lt;/strong&gt;
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#include &amp;lt;stdio.h&amp;gt;
#include &amp;lt;stdlib.h&amp;gt;

int main()
{
    printf("Hello world!");
    return 0;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  &lt;strong&gt;Now let's explain the code&lt;/strong&gt;
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--cO4GkSpB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ogm1w5dni1iqy7oxhmik.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--cO4GkSpB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ogm1w5dni1iqy7oxhmik.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--gdhL-l4n--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/3fhktgub85kjfw0lfoy7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--gdhL-l4n--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/3fhktgub85kjfw0lfoy7.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--r4f3bP6p--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/gkulxupzshe8hq49k1xa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--r4f3bP6p--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/gkulxupzshe8hq49k1xa.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--0pQrtqPc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ax5ewb9m87qk9akjq4bd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--0pQrtqPc--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/ax5ewb9m87qk9akjq4bd.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Now let's see what the program outputs on the console
&lt;/h3&gt;

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

&lt;h2&gt;
  
  
  &lt;strong&gt;After all this years still C!?&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Many of the C projects that exist today were started decades ago. But C programming isn’t limited to projects that started decades ago, when there weren’t as many programming languages as today. Many C projects are still started today; these are the most famous ones:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Google&lt;/strong&gt;
Google uses C code mostly for their backend programming (same is done with YouTube)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Microsoft Windows&lt;/strong&gt;
Microsoft’s Windows kernel is developed mostly in C, with some parts in assembly language.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Linux&lt;/strong&gt;
Linux is also written mostly in C, with some parts in assembly.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mac&lt;/strong&gt;
Mac computers are also powered by C, since the OS X kernel is written mostly in C. Every program and driver in a Mac, as in Windows and Linux computers, is running on a C-powered kernel.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Mobile&lt;/strong&gt;
iOS, Android and Windows Phone kernels are also written in C. &lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tesla&lt;/strong&gt;
Tesla's computers are tested in python and then translated to C for faster execution time. (also SpaceX does the same)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;HP&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Dell&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Ford&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Final thoughts
&lt;/h2&gt;

&lt;p&gt;Most of Computer Science or any software engineering course students are introduced to C briefly as a lesson in Principles of Computer Programming. I advice anyone that is getting into programming to do his/her own research and find out exactly what you want to learn and make your own choice. I would say that it will take you between 2-3 weeks to learn the basics of C and I will suggest you do.&lt;/p&gt;

&lt;p&gt;Drop any suggestions for posts or projects this is my 4 day in a row posting and I want to keep it going as long as possible. &lt;/p&gt;

&lt;p&gt;Thank you for reading,&lt;br&gt;
Stay safe, &lt;br&gt;
~Jovan&lt;/p&gt;

</description>
      <category>codenewbie</category>
      <category>career</category>
      <category>gamedev</category>
      <category>discuss</category>
    </item>
    <item>
      <title>Interactive Dark mode switch for your Website using CSS and JavaScript</title>
      <dc:creator>Jovan M.</dc:creator>
      <pubDate>Tue, 26 Jan 2021 12:06:11 +0000</pubDate>
      <link>https://dev.to/miljkovicjovan/interactive-dark-mode-switch-for-your-website-using-css-and-javascript-jk4</link>
      <guid>https://dev.to/miljkovicjovan/interactive-dark-mode-switch-for-your-website-using-css-and-javascript-jk4</guid>
      <description>&lt;p&gt;In the process of making my personal website I played around making an interactive switch for Dark/Light modes of my website. So I am going to present you &lt;strong&gt;my solution&lt;/strong&gt; and If you like it you can see &lt;em&gt;the steps&lt;/em&gt; of how I build it using vanilla JavaScript.&lt;/p&gt;

&lt;h1&gt;
  
  
  &lt;strong&gt;What we are making&lt;/strong&gt;
&lt;/h1&gt;

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

&lt;h2&gt;
  
  
  &lt;strong&gt;Steps&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Make your static website&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Pretty simple design, in this post we will focus more on the switch and not on the look of the website. Make sure to include some text so we can see the change between the dark mode and light mode and don't forget the input. This is what I made:&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/miljkovicjovan/embed/WNGVwwX?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Make Function to toggle .dark-mode with input&lt;/strong&gt;&lt;br&gt;
We will use an onclick function that will apply the &lt;strong&gt;.dark-mode&lt;/strong&gt; CSS rules to our website. It is easy and looks something like this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function myFunction() {
        var element = document.body;
        element.classList.toggle("dark-mode");
      }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Don't forget&lt;/strong&gt; to add the  &lt;code&gt;onclick="myFunction()"&lt;/code&gt; part in the input tag. Looks like this : &lt;br&gt;
&lt;iframe height="600" src="https://codepen.io/miljkovicjovan/embed/wvzVGeP?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;So we made the dark mode switch but let's start customizing it in CSS and making it look more like a switch.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Customization in CSS&lt;/strong&gt;&lt;br&gt;
First I made the switch look like an actual switch and played around with the colors schemes until I found a pretty good one. Then I researched a bit how to make &lt;code&gt;content: ''&lt;/code&gt; into a sun and a moon so I could make a cool animation like switching from &lt;strong&gt;daytime to nightime&lt;/strong&gt;. I played around and found the best design for each and the best colors. The only thing left was to use an &lt;code&gt;animation&lt;/code&gt; and use &lt;code&gt;keyframes&lt;/code&gt; to "animate" the sun and moon. And after around a half our of work it was done. Here is the code:&lt;/p&gt;

&lt;p&gt;&lt;iframe height="600" src="https://codepen.io/miljkovicjovan/embed/LYRwZYx?height=600&amp;amp;default-tab=result&amp;amp;embed-version=2"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;You can get the whole folder here&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://github.com/miljkovicjovan/darkmodeswitch"&gt;GitHub&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Thank you for reading!
&lt;/h2&gt;

&lt;p&gt;I hope this article helps you and becomes useful, any critism is accepted and I encourage you to ask any questions in the comments.&lt;/p&gt;

&lt;p&gt;Thanks again,&lt;/p&gt;

&lt;p&gt;Stay safe,&lt;/p&gt;

&lt;p&gt;~Jovan&lt;/p&gt;

</description>
      <category>html</category>
      <category>css</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Making a Typewriter effect for your Website using Typed.js library</title>
      <dc:creator>Jovan M.</dc:creator>
      <pubDate>Mon, 25 Jan 2021 14:14:37 +0000</pubDate>
      <link>https://dev.to/miljkovicjovan/making-a-typewriter-effect-for-your-website-using-typed-js-library-4hm3</link>
      <guid>https://dev.to/miljkovicjovan/making-a-typewriter-effect-for-your-website-using-typed-js-library-4hm3</guid>
      <description>&lt;h2&gt;
  
  
  Mindset before going in
&lt;/h2&gt;

&lt;p&gt;I am developing and designing my personal website for blog-posts and projects. I want my Header to consist of a text like:&lt;br&gt;
&lt;strong&gt;Hey, I'm Jovan.&lt;/strong&gt;&lt;br&gt;
Simple and to the point. However I thought of a cool idea to use a JS library I saw someone use called Typed.js. Check it out here so you understand the principle : &lt;a href="https://mattboldt.com/demos/typed-js/" rel="noopener noreferrer"&gt;LINK&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So as you can see the library basically allows you to type out something and delete it and type something else but it makes for a cool effect on your webpage by making it look like a cool old typewriter effect to add.&lt;/p&gt;
&lt;h2&gt;
  
  
  My vision
&lt;/h2&gt;

&lt;p&gt;So the header I wanted to have at the start and at the end of the animation is: Hey, I'm Jovan.&lt;br&gt;
But I thought of a cool way for people to understand who I am from the start is to delete until it looks like: Hey, I'm &lt;br&gt;
And then to circle around different things I do like:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;a Software Engineer&lt;/li&gt;
&lt;li&gt;a Web Developer&lt;/li&gt;
&lt;li&gt;a student&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;and then to end with saying : Hey, I'm Jovan.&lt;br&gt;
So that way people get a feeling of what the website is about in an interactive and pretty simple way.&lt;/p&gt;
&lt;h2&gt;
  
  
  My steps
&lt;/h2&gt;

&lt;p&gt;1.&lt;strong&gt;Download the library and add to project folder&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;First of all you need to download the library so here's is the &lt;a href="https://mattboldt.com/demos/typed-js/" rel="noopener noreferrer"&gt;link&lt;/a&gt; if you want to follow along with this post/tutorial. After downloading the .zip extract the files and add the whole folder to your projects source folder.&lt;/p&gt;

&lt;p&gt;2.&lt;strong&gt;Add scripts to the header&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;These are the needed scripts that make the library function, you need to inculde them on the header of your HTML file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!-- typed.min.js file from typed.js folder --&amp;gt;
&amp;lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;!-- Add jquery cdn --&amp;gt;
&amp;lt;script src="./typed.js-master/lib/typed.min.js"&amp;gt;&amp;lt;/script&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;3.&lt;strong&gt;Add the needed script to function&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This is only the basic code that the website provides, when we move on we will change and modify this code for our needs&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var typed = new Typed('.element', {
  strings: ["First sentence.", "Second sentence."],
  typeSpeed: 30
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This is how that simple format looks with a little CSS added in the mix.&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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fejqrn6y8f9eztr8f89g6.gif" 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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fejqrn6y8f9eztr8f89g6.gif" alt="Screen-Recording-1-25-2021-2-18"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;4.&lt;strong&gt;Modify to your needs&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;So we have already enstablished what I want to be on my site so let's try to implement it here. After adding the text I wanted I realised that it typed too fast. I slowed the typing speed by going in the script and playing with the typeSpeed attribute and found what I liked at:  &lt;code&gt;typeSpeed : 90&lt;/code&gt; &lt;/p&gt;

&lt;p&gt;After that I needed to add another attribute so I could play arround with the speed that it backspaced the text. I searched in the files provided the code that can do that and found that I can just add   &lt;code&gt;backSpeed: 40&lt;/code&gt;   in the script which was a great speed. While searching throught the code I also found an attribute backDelay, which delays the time between when the line is typed and when it's deleted however I didn't use it.&lt;/p&gt;

&lt;p&gt;I thought I was finished here but when you use CSS and make your text bigger the cursor when the library is typing isn't getting bigger with the text so you have to find the variable and modify it. So after reading the README file I found the variable and modified it by adding this to my CSS file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.typed-cursor {
    font-size: 5.5rem;
    color:rgb(87, 87, 87);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;and was basically it.&lt;/p&gt;

&lt;h1&gt;
  
  
  Final product
&lt;/h1&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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fpze1rnbg9s76mrlg2lfr.gif" 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%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fpze1rnbg9s76mrlg2lfr.gif" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Pretty cool right? If you want to try it yourself here is where you can get my source code:&lt;br&gt;
&lt;a href="https://www.codepile.net/pile/4o74LL3a" rel="noopener noreferrer"&gt;Codepile&lt;/a&gt;&lt;br&gt;
In order to run this you have to also install the library and add it to the same folder.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/miljkovicjovan/Typewriter-effect-using-Typed.js-" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt;&lt;br&gt;
This is the complete code I used in this example &amp;amp; the library so by downloading the code you get both.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final thoughts/ Goodbyes
&lt;/h2&gt;

&lt;p&gt;Thank you so much for reading this If you made it to here tell me what's your favorite song in the comments :)!&lt;br&gt;
I hope this helped anyone and Thanks again!&lt;br&gt;
~Jovan&lt;/p&gt;

</description>
      <category>html</category>
      <category>css</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>"Hello World!" My first post!</title>
      <dc:creator>Jovan M.</dc:creator>
      <pubDate>Tue, 19 Jan 2021 17:32:34 +0000</pubDate>
      <link>https://dev.to/miljkovicjovan/hello-world-my-first-post-39fc</link>
      <guid>https://dev.to/miljkovicjovan/hello-world-my-first-post-39fc</guid>
      <description>&lt;p&gt;Hello World!&lt;br&gt;
I’m Jovan, I’ve recently started my journey in learning coding and thought I’d introduce myself and say what I am doing and what I want to do in the future.&lt;/p&gt;

&lt;p&gt;My conundrum:&lt;br&gt;
I am a first year in a Software and Data Engineering course and even before that I've been intrigued with what code and programmers can accomplish. This is why I decided enrolling in this course after playing arround with HTML, CSS and JavaScript for 2 months and making little homemade project web-sites. Since then I have not been able to stop reading about coding and learning something new everyday.&lt;/p&gt;

&lt;p&gt;Hopefully my journey will be useful to someone out there and I hope to teach what I learn to other people . I'd be happy to help out if I can, I am open to all and any project ideas or just queastions in my Dm's.&lt;/p&gt;

&lt;p&gt;Thank you so much, Stay safe,&lt;br&gt;
~ Jovan&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>welcome</category>
    </item>
  </channel>
</rss>
