<?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: Umapreethi Santhanakrishnan</title>
    <description>The latest articles on DEV Community by Umapreethi Santhanakrishnan (@umapreethidev).</description>
    <link>https://dev.to/umapreethidev</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%2F546277%2F6eabe751-23d2-42e3-8eb7-14cfb0bb7b9a.jpeg</url>
      <title>DEV Community: Umapreethi Santhanakrishnan</title>
      <link>https://dev.to/umapreethidev</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/umapreethidev"/>
    <language>en</language>
    <item>
      <title>What are var, let, const and their difference?</title>
      <dc:creator>Umapreethi Santhanakrishnan</dc:creator>
      <pubDate>Mon, 06 Dec 2021 04:57:33 +0000</pubDate>
      <link>https://dev.to/umapreethidev/what-are-var-let-const-and-their-difference-5eec</link>
      <guid>https://dev.to/umapreethidev/what-are-var-let-const-and-their-difference-5eec</guid>
      <description>&lt;p&gt;In JavaScript, we can declare variables using three keywords var, let and const. Let’s see about the scope and difference of these three variable declarations.&lt;/p&gt;

&lt;p&gt;All the three keywords are used to declare a variable. var is ES5, where let and const are introduced in ES6.&lt;/p&gt;

&lt;h2&gt;
  
  
  Variable Declarations
&lt;/h2&gt;

&lt;p&gt;Let’s see what is a variable declaration.&lt;/p&gt;

&lt;p&gt;Using var, let and const you can declare varaible.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var x = 10; // variable decalartion
let y = 11;
const z = 100;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;What happens if we declare the variable without a value.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;var x;
console.log(x); // undefined
let y;
console.log(y); // undefined
const z; // Uncaught SyntaxError: Missing initializer in const declaration
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If we want to update the variable value, we don’t need to redeclare it again. We can only update var and let, where const can be updated. If we try to redeclare it, will produce a type error.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;let can be reassigned, but cannot be redeclared in the same scope.&lt;/li&gt;
&lt;li&gt;const cannot be reassigned and cannot be redeclared in the same scope.&lt;/li&gt;
&lt;li&gt;var can be reassigned and redeclared.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;x = 15;// reassigning the variable var x
y = 20; // reassigning the variable let y
z = 200; // Uncaught TypeError: Assignment to a constant variable
var x = 20; // when you give assign different values to same varaible browser will accept the latest value when declared in var
let y = 30; // Uncaught SyntaxError: Identifier 'y' has already been declared
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Since, we can redeclare the variable in var keyword, for a small number code there won’t be an issue in finding if we redeclare it. But when in large number of lines of code, it will mess up the work. That’s why most of the developers use let and const.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;use let when plan to reassign the value to a variable.&lt;/li&gt;
&lt;li&gt;use const when planned to not reassigning the values to a variable.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://medium.com/@umapreethi123.up/what-are-var-let-const-and-their-difference-f86fcdc1b9d20"&gt;Learn more&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>programming</category>
    </item>
    <item>
      <title>Javascript , CSS Clock</title>
      <dc:creator>Umapreethi Santhanakrishnan</dc:creator>
      <pubDate>Tue, 07 Sep 2021 19:17:13 +0000</pubDate>
      <link>https://dev.to/umapreethidev/javascript-css-clock-4bah</link>
      <guid>https://dev.to/umapreethidev/javascript-css-clock-4bah</guid>
      <description>&lt;h2&gt;
  
  
  Creating Html and Css for Clock
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Create a &lt;code&gt;div&lt;/code&gt; for clock and create three &lt;code&gt;div&lt;/code&gt; for the hour, minute and second hand.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; HTML
 &amp;lt;div class="body"&amp;gt;
        &amp;lt;h1&amp;gt;Clock&amp;lt;/h1&amp;gt;
        &amp;lt;div class="clock"&amp;gt;
            &amp;lt;div class="hand hour"&amp;gt;&amp;lt;/div&amp;gt;
            &amp;lt;div class="hand min"&amp;gt;&amp;lt;/div&amp;gt;
            &amp;lt;div class="hand sec"&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
 &amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Use CSS to Create the Clock background
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.clock {
    max-width: 500px;
    border: 3px solid white;
    margin: 0px auto;
    margin-top: 100px;
    height: 500px;
    border-radius: 50%;
    position: relative;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Use CSS to create the three hour, minute and second hand
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;.hand {
    width: 50%;
    height:4px;
    margin:5px;
    background-color: #fff;
    position: absolute;
    top:50%;
    transform: rotate(90deg);
    transform-origin: 100%;
    transition: all 0.05s;
    transition-timing-function: cubic-bezier(0.1,2.7,0.58,1);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Check &lt;a href="https://www.w3schools.com/css/css3_transitions.asp"&gt;transition property&lt;/a&gt; for more information.&lt;/p&gt;

&lt;h2&gt;
  
  
  Js Code
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;First select the second hand to make process. &lt;code&gt;new date()&lt;/code&gt; function will give the current date with time. &lt;code&gt;getSeconds()&lt;/code&gt; function will give the current seconds, we have to convert it to the &lt;code&gt;degree&lt;/code&gt;, once it is converted apply it to the hand using css.
Follow the same procedure for minute hand and hour hand.
Use &lt;code&gt;setInterval&lt;/code&gt; to call the function every 1ms.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const secondHand = document.querySelector(".sec");
const minuteHand = document.querySelector(".min");
const hourHand =  document.querySelector(".hour");

function setDate(){
    const now = new Date();
    const seconds = now.getSeconds();

    //seconds
    const secondDeg = ((seconds / 60) * 360) + 90;
    secondHand.style.transform = `rotate(${secondDeg}deg)`;

    // minutes
    const minute = now.getMinutes();
    const minDeg = ((minute / 60) * 360) + 90; 
    minuteHand.style.transform = `rotate(${minDeg}deg)`;

    // hours
    const hour = now.getHours();
    const hourDeg = ((hour / 12) * 360) + 90; 
    hourHand.style.transform = `rotate(${hourDeg}deg)`;
}
setInterval(setDate, 1000);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>html</category>
      <category>css</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Changing Background Color in JS(project for beginners)</title>
      <dc:creator>Umapreethi Santhanakrishnan</dc:creator>
      <pubDate>Sun, 21 Mar 2021 20:53:39 +0000</pubDate>
      <link>https://dev.to/umapreethidev/changing-background-color-in-js-project-for-beginners-eeh</link>
      <guid>https://dev.to/umapreethidev/changing-background-color-in-js-project-for-beginners-eeh</guid>
      <description>&lt;p&gt;This is an easy project for beginners.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Step 1: Create a basic HTML and CSS with a button and give a default background color.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div id="background"&amp;gt;
    &amp;lt;h1&amp;gt;Changing Background Color&amp;lt;/h1&amp;gt;
    &amp;lt;button onclick="clickFunction()"&amp;gt;Click Me&amp;lt;/button&amp;gt;
&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Step 2: Add a event listener or onclick function to button.&lt;/li&gt;
&lt;li&gt;Step 3: Create an Array of colors and once button is clicked the background will change. Use &lt;code&gt;Math.random()&lt;/code&gt; to pick color randomly.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function clickFunction()
 {
    let bg = document.getElementById('background');
    console.log(bg);
    let colors = ["red", "green", "blue", "yellow"];

    const colorIndex = parseInt(Math.random()*colors.length);
    bg.style.backgroundColor = colors[colorIndex];
 }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>html</category>
      <category>css</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Difference between display:none and visibility:hidden</title>
      <dc:creator>Umapreethi Santhanakrishnan</dc:creator>
      <pubDate>Thu, 04 Feb 2021 04:13:39 +0000</pubDate>
      <link>https://dev.to/umapreethidev/difference-between-display-none-and-visibility-hidden-3ha1</link>
      <guid>https://dev.to/umapreethidev/difference-between-display-none-and-visibility-hidden-3ha1</guid>
      <description>&lt;p&gt;The display property helps us to specify the display behavior of an element.&lt;/p&gt;

&lt;h3&gt;
  
  
  Difference between &lt;code&gt;display:none&lt;/code&gt; and &lt;code&gt;visibility:hidden&lt;/code&gt;
&lt;/h3&gt;

&lt;p&gt;We can hide elements using both properties but there is  a difference between them.&lt;/p&gt;

&lt;p&gt;Let's say we have three balls in red, green and blue color. &lt;/p&gt;

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

&lt;h3&gt;
  
  
  Css code
&lt;/h3&gt;

&lt;p&gt;If I set display:none for the green ball.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#green {
  background-color:green;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  display: none;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;p&gt;Now, our green ball is removed, but it still exists on HTML structure and &lt;code&gt;display:none&lt;/code&gt; property makes it look like deleted. The blue ball moved up and took the green ball place.&lt;/p&gt;

&lt;h3&gt;
  
  
  Let's see what happen when we set &lt;code&gt;visibility:hidden&lt;/code&gt; for the same green ball.
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#green {
  background-color:green;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  visibility: hidden;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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

&lt;p&gt;&lt;code&gt;visbility:hidden&lt;/code&gt; property does not remove the green ball, makes it &lt;em&gt;invisible&lt;/em&gt;&lt;/p&gt;

</description>
      <category>100daysofcode</category>
      <category>css</category>
    </item>
    <item>
      <title>HTML elements</title>
      <dc:creator>Umapreethi Santhanakrishnan</dc:creator>
      <pubDate>Wed, 27 Jan 2021 04:43:17 +0000</pubDate>
      <link>https://dev.to/umapreethidev/html-elements-4lbo</link>
      <guid>https://dev.to/umapreethidev/html-elements-4lbo</guid>
      <description>&lt;p&gt;HTML describes the structure of the website.When creating the web page, you can add tags(Markup).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Structural Markup&lt;/li&gt;
&lt;li&gt;Semantic Markup&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Structural Markup&lt;/strong&gt;: the elements that we can use to describe the headings and paragraphs.&lt;br&gt;
&lt;strong&gt;Semantic Markup&lt;/strong&gt;: the elements which provides more information and helpful for &lt;code&gt;SEO&lt;/code&gt; purposes.&lt;/p&gt;

&lt;h2&gt;
  
  
  HTML elements:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt; &lt;code&gt;&amp;lt;h1&amp;gt;&amp;lt;/h1&amp;gt;&lt;/code&gt; to &lt;code&gt;&amp;lt;h6&amp;gt;&amp;lt;/h6&amp;gt;&lt;/code&gt;.
The browser displays the heading in different sizes. &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt; is the largest and &lt;code&gt;&amp;lt;h6&amp;gt;&lt;/code&gt; is the smallest.&lt;/li&gt;
&lt;li&gt; &lt;code&gt;&amp;lt;p&amp;gt;&amp;lt;/p&amp;gt;&lt;/code&gt; used to display the paragraph tag.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;b&amp;gt;&amp;lt;/b&amp;gt;&lt;/code&gt; display text in bold.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;strong&amp;gt;&amp;lt;/strong&amp;gt;&lt;/code&gt; used to display the content which has importance. By default, the browser displays the content in bold.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;i&amp;gt;&amp;lt;/i&amp;gt;&lt;/code&gt; display text in italics.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;em&amp;gt;&amp;lt;/em&amp;gt;&lt;/code&gt; used to emphasize the content(show it's importance). By default, the browser displays the content in italics.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;sup&amp;gt;&amp;lt;/sup&amp;gt;&lt;/code&gt; used to contain characters that should be superscript such raising power of 2.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;sub&amp;gt;&amp;lt;/sub&amp;gt;&lt;/code&gt; used to contain characters that should be subscript.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;br /&amp;gt;&lt;/code&gt; break tag helps to show each new paragraph or heading on a new line.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;hr /&amp;gt;&lt;/code&gt; gives a horizontal rule between sections.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;blockquote&amp;gt;&amp;lt;/blockqoute&amp;gt;&lt;/code&gt; used for longer quotes.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;q&amp;gt;&amp;lt;/q&amp;gt;&lt;/code&gt; used for shorter quotes.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;abbr&amp;gt;&amp;lt;/abbr&amp;gt;&lt;/code&gt; - Abbreviation.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;acronym&amp;gt;&amp;lt;/acronym&amp;gt;&lt;/code&gt; - Acronym.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;cite&amp;gt;&amp;lt;/cite&amp;gt;&lt;/code&gt; used to indicate where the citation is from.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;address&amp;gt;&amp;lt;/address&amp;gt;&lt;/code&gt; used to indicate the address and displays the content in italics.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;ins&amp;gt;&amp;lt;/ins&amp;gt;&lt;/code&gt; used to show the content that has been inserted to the document.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;del&amp;gt;&amp;lt;/del&amp;gt;&lt;/code&gt; used to show the content that has been deleted from the document.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;&amp;lt;s&amp;gt;&amp;lt;/s&amp;gt;&lt;/code&gt; used to show the content that is no longer relevant.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Empty Elements&lt;/strong&gt;:&lt;br&gt;
There are few elements that don't have a child node.&lt;br&gt;
They are:&lt;br&gt;
&lt;code&gt;&amp;lt;area&amp;gt;,&amp;lt;base&amp;gt;,&amp;lt;br&amp;gt;,&amp;lt;col&amp;gt;,&amp;lt;embed&amp;gt;,&amp;lt;hr&amp;gt;,&amp;lt;img&amp;gt;,&amp;lt;input&amp;gt;,&amp;lt;keygen&amp;gt;,&amp;lt;link&amp;gt;,&amp;lt;meta&amp;gt;,&amp;lt;param&amp;gt;,&amp;lt;source&amp;gt;,&amp;lt;track&amp;gt;,&amp;lt;wbr&amp;gt;&lt;/code&gt;&lt;/p&gt;

</description>
      <category>100daysofcode</category>
      <category>html</category>
      <category>javascript</category>
      <category>css</category>
    </item>
    <item>
      <title>Palindrome checker using Html,Css,Js </title>
      <dc:creator>Umapreethi Santhanakrishnan</dc:creator>
      <pubDate>Mon, 25 Jan 2021 21:42:33 +0000</pubDate>
      <link>https://dev.to/umapreethidev/palindrome-checker-using-html-css-js-2661</link>
      <guid>https://dev.to/umapreethidev/palindrome-checker-using-html-css-js-2661</guid>
      <description>&lt;p&gt;Sixth day of my challenge.&lt;/p&gt;

&lt;h1&gt;
  
  
  Palindrome checker:
&lt;/h1&gt;

&lt;blockquote&gt;
&lt;p&gt;A palindrome is a word, number, phrase, or other sequence of characters which reads the same backward as forward, such as madam or racecar or the number 10801.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h1&gt;
  
  
  Steps:
&lt;/h1&gt;

&lt;h2&gt;
  
  
  Type - 1:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Get the input value using DOM methods.&lt;/li&gt;
&lt;li&gt;Convert the string to lowercase.&lt;/li&gt;
&lt;li&gt;Create a empty variable to store the reverse string.&lt;/li&gt;
&lt;li&gt;Using for loop, store the values to the variable.&lt;/li&gt;
&lt;li&gt;Check the reverse string and input value are equal using if condition.

&lt;ul&gt;
&lt;li&gt;If both are equal, then display &lt;em&gt;It is a Palindrome&lt;/em&gt;
&lt;/li&gt;
&lt;li&gt;If both are not equal, then display &lt;em&gt;It is not a Palindrome&lt;/em&gt;
&lt;/li&gt;
&lt;/ul&gt;


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

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const inputVal = document.getElementById("inputVal").value;
const input = inputVal.toLowerCase();
console.log(input);
let reverseVal = "";
for (let i= input.length-1; i&amp;gt;=0; i--) {
     reverseVal += input[i];
 }
console.log(reverseVal);

//Condition to check the palindrome
  if (reverseVal == input) {
    result.innerHTML = "It is a Palindrome!!!";
  } else {
    result.innerHTML = "It is  not a Palindrome";
  }
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Type - 2:
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Follow first two steps from type-1.&lt;/li&gt;
&lt;li&gt;Split the inputValue using &lt;code&gt;split()&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Then, reverse the inputValue using &lt;code&gt;reverse()&lt;/code&gt; function.&lt;/li&gt;
&lt;li&gt;Then join the inputValue using &lt;code&gt;join()&lt;/code&gt; function.&lt;/li&gt;
&lt;li&gt;Finally follow the last step as in Type-1(check the palindrome using &lt;strong&gt;if&lt;/strong&gt; condition).
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function palChecker(event) {
  event.preventDefault();

  const inputVal = document.getElementById("inputVal").value;
  const input = inputVal.toLowerCase();
  console.log(input);

  const split = input.split("");
  let reverse = split.reverse();
  let revWord = reverse.join("");
  const result = document.getElementById("result");

  //Condition to check the palindrome
  if (revWord == input) {
    result.innerHTML = "It is a Palindrome!!!";
  } else {
    result.innerHTML = "It is  not a Palindrome";
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  References:
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/split"&gt;split&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reverse"&gt;Reverse&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join"&gt;Join&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/toLowerCase"&gt;toLowerCase&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length"&gt;string.length&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>100daysofcode</category>
      <category>html</category>
      <category>css</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Accordion using Html,Css,Js</title>
      <dc:creator>Umapreethi Santhanakrishnan</dc:creator>
      <pubDate>Mon, 25 Jan 2021 00:24:24 +0000</pubDate>
      <link>https://dev.to/umapreethidev/accordion-using-html-css-js-5623</link>
      <guid>https://dev.to/umapreethidev/accordion-using-html-css-js-5623</guid>
      <description>&lt;p&gt;Fifth day of my 100 days of code.&lt;/p&gt;

&lt;h1&gt;
  
  
  Html Code:
&lt;/h1&gt;

&lt;p&gt;We have to create buttons and give contents below in div.&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;h1&amp;gt;Accordion&amp;lt;/h1&amp;gt;
    &amp;lt;h3&amp;gt;Click the button&amp;lt;/h3&amp;gt;
    &amp;lt;div class="accordion"&amp;gt;
      &amp;lt;button type="button" class="acc"&amp;gt;What is Html?&amp;lt;/button&amp;gt;
      &amp;lt;div class="panel"&amp;gt;
        &amp;lt;p&amp;gt;
          Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
          eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
          minim veniam, quis nostrud exercitation ullamco laboris nisi ut
          aliquip ex ea commodo consequat.
        &amp;lt;/p&amp;gt;
      &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;

    &amp;lt;div class="accordion"&amp;gt;
      &amp;lt;button type="button" class="acc"&amp;gt;What is CSS?&amp;lt;/button&amp;gt;
      &amp;lt;div class="panel"&amp;gt;
        &amp;lt;p&amp;gt;
          Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
          eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
          minim veniam, quis nostrud exercitation ullamco laboris nisi ut
          aliquip ex ea commodo consequat.
        &amp;lt;/p&amp;gt;
      &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Js code:
&lt;/h1&gt;

&lt;p&gt;Access your button by using Classname and add eventlistener 'click' to all button.&lt;br&gt;
Access your content by using &lt;strong&gt;nextSiblingElement&lt;/strong&gt; and write the condition to display the content.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;let acc = document.getElementsByClassName('acc');

for(let i=0; i&amp;lt; acc.length; i++){
    acc[i].addEventListener('click', function() {
        this.classList.toggle("active");
        let panel = this.nextElementSibling;
        if(panel.style.display === "block") {
            panel.style.display = "none";
        } else {
            panel.style.display = "block";
        }
    })
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h1&gt;
  
  
  Css Code:
&lt;/h1&gt;

&lt;p&gt;Add the plus and minus sign using before property.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;body {
  height: 100vh;
  background-color: #eee;
}

button {
  text-align: left;
  padding: 10px;
  margin-right: 5px;
  cursor: pointer;
  width: 50%;
  border-color: 1px solid #ccc;
}

button::before {
  content: "+";
  padding: 10px;
}

.active {
  background-color: #2c2b2b;
  color: #fff;
}
.active::before {
  content: "-";
  padding: 10px;
}

.panel {
  display: none;
  width: 50%;
 padding-left: 10px;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>100daysofcode</category>
      <category>html</category>
      <category>css</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Creating Tabs using Html,css,js</title>
      <dc:creator>Umapreethi Santhanakrishnan</dc:creator>
      <pubDate>Sun, 24 Jan 2021 05:09:03 +0000</pubDate>
      <link>https://dev.to/umapreethidev/creating-tabs-using-html-css-js-28dh</link>
      <guid>https://dev.to/umapreethidev/creating-tabs-using-html-css-js-28dh</guid>
      <description>&lt;p&gt;Fourth day of 100 days of code.&lt;/p&gt;

&lt;h1&gt;
  
  
  HTML Code:
&lt;/h1&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; &amp;lt;div class="tabs"&amp;gt;
      &amp;lt;button id="tab1" onclick="open(event, 'html')" type="button"&amp;gt;
        HTML
      &amp;lt;/button&amp;gt;
      &amp;lt;button id="tab2" onclick="open(event, 'css')" type="button"&amp;gt;
        CSS
      &amp;lt;/button&amp;gt;
      &amp;lt;button id="tab3" onclick="open(event, 'js')" type="button"&amp;gt;
        JS
      &amp;lt;/button&amp;gt;
    &amp;lt;/div&amp;gt;
    &amp;lt;div id="cont"&amp;gt;&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Index.js&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function open(event, skill) {
  event.preventDefault();

  const content = document.getElementById("cont");
  content.classList.add("content");
  if (skill == "html") {
    content.innerHTML =
      "HTML is the standard markup language for Web pages.With HTML you can create your own Website.";
  }
  if (skill == "css") {
    content.innerHTML =
      "CSS is the language we use to style an HTML document.CSS describes how HTML elements should be displayed.";
  }
  if (skill == "js") {
    content.innerHTML =
      "JavaScript is the worlds most popular programming language.JavaScript is the programming language of the Web.";
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Through onclick event, pass the skill and if the skill matches the button value, update your innerHTML.&lt;/p&gt;

</description>
      <category>100daysofcode</category>
      <category>javascript</category>
      <category>html</category>
      <category>css</category>
    </item>
    <item>
      <title>Digital Clock using HTML,CSS,JS</title>
      <dc:creator>Umapreethi Santhanakrishnan</dc:creator>
      <pubDate>Fri, 22 Jan 2021 23:54:39 +0000</pubDate>
      <link>https://dev.to/umapreethidev/digital-clock-using-html-css-js-5b95</link>
      <guid>https://dev.to/umapreethidev/digital-clock-using-html-css-js-5b95</guid>
      <description>&lt;p&gt;Third day of my 100 days of code.&lt;br&gt;
Digital Clock:&lt;/p&gt;
&lt;h2&gt;
  
  
  HTML Code:
&lt;/h2&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;Digital clock&amp;lt;/title&amp;gt;
    &amp;lt;link href="style.css" rel="stylesheet"&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
    &amp;lt;h1&amp;gt;Digital Clock&amp;lt;/h1&amp;gt;
    &amp;lt;div id="clock"&amp;gt;10:24:35&amp;lt;/div&amp;gt;
    &amp;lt;script src="index.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;We need to add a div with a time which can be replaced by .innerHTML&lt;/p&gt;
&lt;h2&gt;
  
  
  JS Code:
&lt;/h2&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function showTime() {
    let today = new Date();
    let hours = today.getHours();
    let minutes = today.getMinutes();
    let seconds = today.getSeconds();
    let period = 'AM';
    console.log(today);
    console.log(hours);
}
showTime();
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;Create a function showTime() and new Date() will give the current date. Get hours, minutes and seconds using function and check the current time in console.The hours will be displayed in 24 hour format.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const time = `${hours} : ${minutes} : ${seconds}  ${period} `;
    document.getElementById('clock').innerHTML = time;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Display the time in UI by replacing the div value.Now the time is displayed in 24 hr format but each time for updating the time, need to reload the page.&lt;br&gt;
&lt;/p&gt;

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

&lt;/div&gt;



&lt;p&gt;For that purpose we are using setInterval.This function evaluates the function for every 1s.&lt;br&gt;
To display in 12 hr format set the condition:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// Set the clock in 12 hr format
    // If hours is equal to 0 at midnight, we set to 12, and if greater than 12, we will
    //subtract it from 12.
    if (hours == '0')
    {
        hours = 12;
    }
    if (hours &amp;gt; 12) {
        hours -= 12;
        period = 'PM';
    }

    // when the hrs is less than 10, we are concantenate with 0, otherwise leave it hrs.
    hours = hours &amp;lt;10 ? `0${hours}` : hours;
    minutes = minutes &amp;lt;10 ? `0${minutes}` : minutes;
    seconds = seconds &amp;lt;10 ? `0${seconds}` : seconds;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;To view the full code, check &lt;a href="https://github.com/umapreethi-dev/100-days-of-code/tree/master/Digital%20clock"&gt;Github&lt;/a&gt;&lt;/p&gt;

</description>
      <category>100daysofcode</category>
      <category>html</category>
      <category>css</category>
      <category>javascript</category>
    </item>
    <item>
      <title>To-do list App using HTML,CSS,JS</title>
      <dc:creator>Umapreethi Santhanakrishnan</dc:creator>
      <pubDate>Thu, 21 Jan 2021 21:43:59 +0000</pubDate>
      <link>https://dev.to/umapreethidev/to-do-list-app-using-html-css-js-25b7</link>
      <guid>https://dev.to/umapreethidev/to-do-list-app-using-html-css-js-25b7</guid>
      <description>&lt;p&gt;Second day of my 100 days of code.&lt;br&gt;
I created a To-do list app using HTML,CSS,JS.&lt;/p&gt;

&lt;p&gt;The user can add a task, mark the task as checked and delete the task.&lt;br&gt;
Before creating the to-do list app, create the logic and write it down.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Step 1: Create a input text box and add the button with onclick function.
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  &amp;lt;h1&amp;gt;todo's&amp;lt;/h1&amp;gt;
    &amp;lt;div class="to-do" id="to-do"&amp;gt;
      &amp;lt;input type="text" id="content" /&amp;gt;
      &amp;lt;button onclick="newElement()" class="addBtn"&amp;gt;Add&amp;lt;/button&amp;gt;
    &amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;ul&gt;
&lt;li&gt;Step 2: To check the onclick function is working on button, get the input value from user using document.getElementById() and check it using console.log().
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;const inputVal = document.getElementById("content").value;
console.log(inputVal);
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;ul&gt;
&lt;li&gt;Step 3: Once we got input from the user, we have to display it in the UI. For displaying the input value in UI, create a div with id/class and append the list to the div.
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;div id="myList"&amp;gt;&amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;In index.js ,&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt; // Creating a list
  const list = document.createElement("li");
  const text = document.createTextNode(inputVal);
  list.appendChild(text);
  const myList = document.getElementById("myList");
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;document.createTextNode creates a new TEXT node. We are creating the node for appending the child node.&lt;/p&gt;

&lt;p&gt;So far, we can create a to-do list, to mark the task as checked and delete the task please refer to the &lt;a href="https://github.com/umapreethi-dev/100-days-of-code"&gt;Github resource&lt;/a&gt;&lt;/p&gt;

</description>
      <category>100daysofcode</category>
      <category>javascript</category>
      <category>css</category>
      <category>html</category>
    </item>
    <item>
      <title>Animated skill bar using html,css,jquery</title>
      <dc:creator>Umapreethi Santhanakrishnan</dc:creator>
      <pubDate>Wed, 20 Jan 2021 21:24:12 +0000</pubDate>
      <link>https://dev.to/umapreethidev/animated-skill-bar-using-html-css-jquery-59ia</link>
      <guid>https://dev.to/umapreethidev/animated-skill-bar-using-html-css-jquery-59ia</guid>
      <description>&lt;p&gt;Hi everyone,&lt;/p&gt;

&lt;p&gt;I am starting my 100 days of code challenge today.&lt;br&gt;
I am going to create a small functionality or project on daily basis.&lt;/p&gt;

&lt;h1&gt;
  
  
  Day 1 - Animated Skill bar
&lt;/h1&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--_-RgnI0W--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/xixj51esm134l3e4jvx5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--_-RgnI0W--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/i/xixj51esm134l3e4jvx5.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;br&gt;
 Check the code - &lt;a href="https://github.com/umapreethi-dev/100-days-of-code"&gt;Github&lt;/a&gt;&lt;/p&gt;

</description>
      <category>100daysofcode</category>
      <category>javascript</category>
      <category>html</category>
      <category>css</category>
    </item>
    <item>
      <title>Creating localhost using Node.js and Express</title>
      <dc:creator>Umapreethi Santhanakrishnan</dc:creator>
      <pubDate>Fri, 15 Jan 2021 00:36:14 +0000</pubDate>
      <link>https://dev.to/umapreethidev/creating-localhost-using-node-js-and-express-3dll</link>
      <guid>https://dev.to/umapreethidev/creating-localhost-using-node-js-and-express-3dll</guid>
      <description>&lt;h1&gt;
  
  
  What is Node.js?
&lt;/h1&gt;

&lt;p&gt;Node.js uses to create a backend using javascript. In a simple way, Node.js is a javascript complier/interpreter which is used to run javascript outside of the browser.We can use Node.js to create Server-side applications(API, Web server) and Desktop applications like Atom.&lt;br&gt;
 If Node is not installed in your computer, check this link to &lt;a href="https://nodejs.org/en/"&gt;download&lt;/a&gt;.&lt;br&gt;
 The most useful feature of Node is that it comes pre-installed with package manager called NPM(Node Package Manager). There are thousands of packages in Node and NPM gives access to all of the packages. One of the package we need for setting up localhost is Express.&lt;/p&gt;

&lt;p&gt;To install a package using the command line:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install package-name
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Steps to create a localhost:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create a server.js file in your root directory.&lt;/li&gt;
&lt;li&gt;Install Express using the command
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm install express
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;In server.js file,
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// Express to run server and routes
const express = require('express');
// set up an instance of app
const app = express();

// Initialize the main project folder(remember to save all html,css,js files into this folder)
app.use(express.static("folder_name"));

// Initialize the route with callback function
app.get("/", sendData);

// Callback function
function sendData(request,response) {
    response.sendFile(path.join(__dirname + '/index.html'));
}

// Initialize port
 const port = 3000;

// Spin up the server
  const server = app.listen(port,listening);
  function listening() {
  console.log(`running in localhost: ${port}`);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;require() function is used to import the express module.&lt;br&gt;
To learn more about Express:&lt;br&gt;
&lt;a href="https://developer.mozilla.org/en-US/docs/Learn/Server-side/Express_Nodejs/Introduction"&gt;Express&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>codenewbie</category>
      <category>node</category>
    </item>
  </channel>
</rss>
