<?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>Forem: Arya Krishna</title>
    <description>The latest articles on Forem by Arya Krishna (@aryakris).</description>
    <link>https://forem.com/aryakris</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%2F786341%2Feb7239f0-b2f9-4145-b082-de64a15e4454.png</url>
      <title>Forem: Arya Krishna</title>
      <link>https://forem.com/aryakris</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/aryakris"/>
    <language>en</language>
    <item>
      <title>Javascript Beginners If Else Statements</title>
      <dc:creator>Arya Krishna</dc:creator>
      <pubDate>Sun, 17 Dec 2023 01:22:40 +0000</pubDate>
      <link>https://forem.com/aryakris/javascript-beginners-if-else-statements-4798</link>
      <guid>https://forem.com/aryakris/javascript-beginners-if-else-statements-4798</guid>
      <description>&lt;p&gt;If you are a beginner in Javascript, understanding conditional statements is very important. &lt;br&gt;
Why if conditional statements considered as one of the fundamental concepts of Javascript or any other programming language? It is mainly because if/else statements help in directing the flow of your code based on specific conditions. &lt;br&gt;
It will provide the ability to dictate which code should run under certain circumstances.&lt;/p&gt;

&lt;p&gt;Here are some site's where you can understand or learn more about conditional statements. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://medium.com/@andrei_diaconu/it-beginner-series-javascript-if-else-exercises-cfc5d65b6f94"&gt;IT Beginner Series: JavaScript IF/ELSE Exercises&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.w3resource.com/javascript-exercises/javascript-conditional-statements-and-loops-exercises.php"&gt;JavaScript conditional statements and loops - Exercises, Practice, Solution&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.hackerrank.com/contests/7days-javascript/challenges/js-if-else-statements"&gt;If Else Statements&lt;/a&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>beginners</category>
      <category>coding</category>
      <category>basics</category>
    </item>
    <item>
      <title>Monday Learning</title>
      <dc:creator>Arya Krishna</dc:creator>
      <pubDate>Mon, 24 Oct 2022 17:02:37 +0000</pubDate>
      <link>https://forem.com/aryakris/monday-learning-5g3p</link>
      <guid>https://forem.com/aryakris/monday-learning-5g3p</guid>
      <description>&lt;p&gt;If you are looking to add some beautiful colors to your personal website, there are professional designers who've curated some of their favorite color palettes, and they provided the Hex codes to implement them in your own designs. Check this site out - &lt;a href="https://colorhunt.co/"&gt;https://colorhunt.co/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>codenewbie</category>
      <category>css</category>
      <category>tips</category>
    </item>
    <item>
      <title>Emojis for your Project</title>
      <dc:creator>Arya Krishna</dc:creator>
      <pubDate>Mon, 17 Oct 2022 19:04:04 +0000</pubDate>
      <link>https://forem.com/aryakris/emojis-for-your-project-5be6</link>
      <guid>https://forem.com/aryakris/emojis-for-your-project-5be6</guid>
      <description>&lt;p&gt;&lt;strong&gt;How to type emojis in your projects?&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;On Mac:&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Command + Control + Space&lt;/p&gt;

&lt;p&gt;This is the default shortcut to bring up the emoji keyboard. &lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--vyO389bx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d2ur3k0z29bnmtkmmd3s.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--vyO389bx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/d2ur3k0z29bnmtkmmd3s.png" alt="Image description" width="880" height="364"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Access Emoji in Windows 10 Using Keyboard Shortcut&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Put the cursor in any text field you’d like to insert an emoji. This could be Microsoft Word, Chrome, or Notepad app.&lt;/p&gt;

&lt;p&gt;Press the WIN + . (full stop) keyboard shortcut, or else the WIN + ; (semicolon). Either will open an emoji picker over the text field.&lt;/p&gt;

&lt;p&gt;Also use - &lt;a href="https://unicode-table.com/en/emoji/"&gt;Unicode Emoji Table&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What are the other ways that you use for adding an emoji?&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>beginners</category>
      <category>programming</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Git &amp; GitHub</title>
      <dc:creator>Arya Krishna</dc:creator>
      <pubDate>Mon, 10 Oct 2022 17:04:08 +0000</pubDate>
      <link>https://forem.com/aryakris/git-github-10p3</link>
      <guid>https://forem.com/aryakris/git-github-10p3</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is DevOps?&lt;/strong&gt;&lt;br&gt;
DevOps is nothing but a culture that helps the development team and operations team to work together. The idea is to continuously develop the code and test them alongside. There will be continuous integration taking place, meaning no matter where you are in the deployment lifecycle, your code is being continuously tested. There will be continuous releases since the operations team will keep deploying the code to the production environment. &lt;/p&gt;

&lt;p&gt;That is a lot of continuous in one paragraph!! In short DEVOps allows better collaboration, increased trust and faster software releases. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Tools in DevOps&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;DevOps is split in to 2 areas - The Development and Operation environment.&lt;/p&gt;

&lt;p&gt;In the Dev side you have - Building, Code, Planning, And Testing. And in the Op side you have Release, Deployment, Operating &amp;amp; Monitoring.&lt;/p&gt;

&lt;p&gt;Source Code Management Tools like SVN(previously used centralized version control system),TVS or Team Foundation Service (distributed under the trailware license for issue tracking and document management), Git (open source distributed version control system).   &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What is Git ?&lt;/strong&gt;&lt;br&gt;
Git is a version control system for tracking changes in Computer files. It is generally used for source code management in Software development. &lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Changes can be tracked in the source code&lt;/li&gt;
&lt;li&gt;Distributed version control tool used for source code management &lt;/li&gt;
&lt;li&gt;Allows multiple developers to work together &lt;/li&gt;
&lt;li&gt;Supports non linear development because of it's thousands of parallel branches&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;*&lt;em&gt;Features of Git *&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;It is free and open source&lt;/li&gt;
&lt;li&gt;Tracks History&lt;/li&gt;
&lt;li&gt;Like mentioned earlier Git supports non linear development&lt;/li&gt;
&lt;li&gt;It is incredibly scalable&lt;/li&gt;
&lt;li&gt;It is collaborative and branching becomes so easier &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Git Workflow&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--RO00d3fx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xsj8vfau0f0hd9po5ssp.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--RO00d3fx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_800/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xsj8vfau0f0hd9po5ssp.jpg" alt="Image description" width="800" height="806"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Typically you start off having the working directory locally and you stage those files in to a staging area. And then you commit the changes to your git repository. These are the changes that you commit locally on your computer. Finally you push those changes and there by your code becomes available to all the developers working on that project. &lt;/p&gt;

&lt;p&gt;There is also the concept of branching that comes in to play when we talk about pushing the code. Branch in git is used to keep your changes until they are ready. You can do your work on a branch while the master branch remains stable. Once your work is completed you can merge your changes to the master branch. &lt;/p&gt;

&lt;p&gt;*&lt;em&gt;Git Commands *&lt;/em&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;git init - Create repositories in your local computer &lt;/li&gt;
&lt;li&gt;git add -  Adds a change in the working directory to the staging area&lt;/li&gt;
&lt;li&gt;git commit -captures a snapshot of the project's currently staged changes&lt;/li&gt;
&lt;li&gt;git status -displays the state of the working directory and the staging area&lt;/li&gt;
&lt;li&gt;git branch - List, create, or delete branches&lt;/li&gt;
&lt;li&gt;git merge - Join two or more development histories together&lt;/li&gt;
&lt;li&gt;git rebase - he process of moving or combining a sequence of commits to a new base commit&lt;/li&gt;
&lt;li&gt;git push - used to upload local repository content to a remote repository&lt;/li&gt;
&lt;li&gt;git pull - used to fetch and download content from a remote repository and immediately update the local repository to match that content&lt;/li&gt;
&lt;li&gt;git origin - a shorthand name for the remote repository that a project was originally cloned from&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>devops</category>
      <category>simplilearn</category>
      <category>frontend</category>
      <category>30daysoflearning</category>
    </item>
    <item>
      <title>Web APIS</title>
      <dc:creator>Arya Krishna</dc:creator>
      <pubDate>Thu, 08 Sep 2022 05:29:58 +0000</pubDate>
      <link>https://forem.com/aryakris/web-apis-4mib</link>
      <guid>https://forem.com/aryakris/web-apis-4mib</guid>
      <description>&lt;p&gt;&lt;strong&gt;What is an API?&lt;/strong&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;An API (Application programming interface) is a set of events, methods, properties and URLs that the developers use to interact with the components of a user's web browser. APIs can also interact with the data sets, hardware or software on a user's computer and third party softwares and services. &lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;What are Web API's? Web APIs use javascript to manipulate the webpages. It is a prebuilt code that comes readily available inside of our browser environment. We use web APIs to create elements and add them to the browser, or to add and remove styles and attributes via Javascript. &lt;/p&gt;

</description>
    </item>
    <item>
      <title>Cloud concepts - Basics</title>
      <dc:creator>Arya Krishna</dc:creator>
      <pubDate>Sat, 04 Jun 2022 18:43:40 +0000</pubDate>
      <link>https://forem.com/aryakris/cloud-concepts-basics-141l</link>
      <guid>https://forem.com/aryakris/cloud-concepts-basics-141l</guid>
      <description>&lt;p&gt;Cloud for simple understanding can be considered as new way of thinking about system architecture, servers, and network bandwidth. Cloud computing is about "renting" resources vs purchasing hardware. You only pay for what you use and you are running your applications in someone else's data centers. For example Microsoft, Amazon, Google - they all have these data centers. &lt;br&gt;
What are the core cloud services that are available?&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Compute - These can be the virtual machines or it could be a Windows or Linux server that runs in the cloud, can be a desktop or even a web application. &lt;/li&gt;
&lt;li&gt;Storage - File shares, databases or blob stores&lt;/li&gt;
&lt;li&gt;Networking services &lt;/li&gt;
&lt;li&gt;Application Services &lt;/li&gt;
&lt;li&gt;Analytics &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;You may have typically used all these services in the premises, but with cloud you would just pay for what you use. &lt;/p&gt;

</description>
      <category>cloud</category>
      <category>azure</category>
      <category>wecoded</category>
    </item>
    <item>
      <title>Learn GIT - degit</title>
      <dc:creator>Arya Krishna</dc:creator>
      <pubDate>Sun, 22 May 2022 17:56:13 +0000</pubDate>
      <link>https://forem.com/aryakris/learn-git-degit-2apc</link>
      <guid>https://forem.com/aryakris/learn-git-degit-2apc</guid>
      <description>&lt;p&gt;degit is almost similar to git clone. degit makes copies of git repositories. When you run&lt;code&gt;degit some-user/some-repo&lt;/code&gt;, it will find the latest commit on &lt;code&gt;https://github.com/some-user/some-repo&lt;/code&gt; and download it.  &lt;/p&gt;

&lt;p&gt;Advantage of degit over &lt;code&gt;git clone&lt;/code&gt; - quicker than using git clone, because we're not downloading the entire git history.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;To install the package for degit&lt;/strong&gt;&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 -g degit
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;More resources to degit -&lt;br&gt;
&lt;a href="https://stackoverflow.com/questions/60210266/what-does-degit-exactly-stand-for"&gt;What does Degit exactly stand for?&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.npmjs.com/package/degit?ref=hackernoon.com"&gt;Docs on degit&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=lnpdn2rE2N8&amp;amp;list=PL4cUxeGkcC9hlbrVO_2QFVqVPhlZmz7tO&amp;amp;index=2"&gt;Showing the usage of degit in a svelte project&lt;/a&gt;&lt;/p&gt;

</description>
      <category>github</category>
      <category>git</category>
      <category>wecoded</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Svelte Components</title>
      <dc:creator>Arya Krishna</dc:creator>
      <pubDate>Tue, 17 May 2022 06:23:26 +0000</pubDate>
      <link>https://forem.com/aryakris/svelte-components-266d</link>
      <guid>https://forem.com/aryakris/svelte-components-266d</guid>
      <description>&lt;p&gt;*&lt;em&gt;What is a component? *&lt;/em&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;A component in simple words is a stand alone section of a webpage. Basically they are the building blocks to create a web page which can be put together and output to the dom or the browser to create a whole website.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;For example the &lt;code&gt;nav bar&lt;/code&gt;or &lt;code&gt;footer&lt;/code&gt; on your webpage can be a component. In svelte kit whole page is represented by component as well. Say for example you have an about page, then in order to represent that about page you would have an &lt;code&gt;about component&lt;/code&gt; also. Naming of a svelte component has to be &lt;code&gt;something.svelte&lt;/code&gt;, for example for an about page it can be&lt;code&gt;about.svelte&lt;/code&gt;. That means the &lt;code&gt;.svelte&lt;/code&gt;extension is being used in naming svelte components. &lt;/p&gt;

&lt;p&gt;Inside a svelte component we can essentially have 3 different things -&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;code&gt;an html template&lt;/code&gt;- which is the html page that is rendered to the browser.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;a script tag&lt;/code&gt; - where any interactive javascript which we inject in to the webpage goes in.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;a style tag&lt;/code&gt;- where any css to style the template goes in.
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;We usually write all of our svelte code inside the &lt;code&gt;src folder&lt;/code&gt;. We create the components and later inject them into the dom. All of our scripts from our different components and all of our styling from the components are bundled together and made in to a single file in svelte.&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;script&amp;gt;
let name = 'Arya';
&amp;lt;/script&amp;gt;

&amp;lt;main&amp;gt;
&amp;lt;h1&amp;gt; hello {name}&amp;lt;/h1&amp;gt;
&amp;lt;/main&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The code block above explains the syntax in which we dynamically write svelte. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Binding variables or values to input fields -&lt;/strong&gt;&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;input type = "text" bind:value = " "  &amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In order to bind a variable or value to input fields, all we have to do is add and input type text and add in a bind attribute : and add what we would like to bind to the value of the input. &lt;/p&gt;

&lt;p&gt;What this help us achieve is that when the value of the input changes, then the variable changes accordingly and vice versa. &lt;/p&gt;

</description>
      <category>javascript</category>
      <category>svelte</category>
      <category>webdev</category>
      <category>wecoded</category>
    </item>
    <item>
      <title>Introduction to Sveltekit</title>
      <dc:creator>Arya Krishna</dc:creator>
      <pubDate>Mon, 16 May 2022 06:04:14 +0000</pubDate>
      <link>https://forem.com/aryakris/introduction-to-sveltekit-2gco</link>
      <guid>https://forem.com/aryakris/introduction-to-sveltekit-2gco</guid>
      <description>&lt;p&gt;Svelte-kit is a framework for building website with Svelte. It is a front end javascript library with the following features -&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Server and client side rendering&lt;/li&gt;
&lt;li&gt;comes with routing systems&lt;/li&gt;
&lt;li&gt;provides a backend API&lt;/li&gt;
&lt;li&gt;code splitting&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This is also a popular SPA framework. According to mdn web docs &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;An SPA (Single-page application) is a web app implementation that loads only a single web document, and then updates the body content of that single document via JavaScript APIs such as XMLHttpRequest and Fetch when different content is to be shown.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;The easiest way to start building a SvelteKit app is to run&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;npm init svelte my-app
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In order to have a proper functioning svelte app you need to make sure you have an updated version of &lt;code&gt;node js&lt;/code&gt; installed to your system. Svelte sometimes runs into problems with older versions of node. &lt;/p&gt;

&lt;p&gt;If you use vs code extensions svelte for vs code is a good extension to install. This will provide us with syntax highlighting for svelte components. &lt;/p&gt;

&lt;p&gt;Learn more about svelte kit&lt;a href="https://kit.svelte.dev/docs/introduction"&gt; here&lt;/a&gt;&lt;/p&gt;

</description>
      <category>svelte</category>
      <category>javascript</category>
      <category>webdev</category>
      <category>wecoded</category>
    </item>
    <item>
      <title>JavaScript Technical Interview Questions 2</title>
      <dc:creator>Arya Krishna</dc:creator>
      <pubDate>Fri, 13 May 2022 05:57:03 +0000</pubDate>
      <link>https://forem.com/aryakris/javascript-technical-interview-questions-2-984</link>
      <guid>https://forem.com/aryakris/javascript-technical-interview-questions-2-984</guid>
      <description>&lt;p&gt;Q. Which statement below is not true about functions in JavaScript?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Functions can be reused throughout your code&lt;/li&gt;
&lt;li&gt;Functions can receive arguments that can alter the output of a function&lt;/li&gt;
&lt;li&gt;Functions are able to be recursive.&lt;/li&gt;
&lt;li&gt;A function must always be assigned an identifier&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Answer - A function must always be assigned an identifier&lt;/p&gt;

&lt;p&gt;Functions without identifiers are called anonymous functions which are used quite frequently used in JavaScript.&lt;/p&gt;

&lt;p&gt;Q. What are the two types of scope JavaScript uses?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Global and Local&lt;/li&gt;
&lt;li&gt;Abroad and Local&lt;/li&gt;
&lt;li&gt;Outside and Inside&lt;/li&gt;
&lt;li&gt;Surrounding and Inner&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Answer - Global and Local&lt;/p&gt;

&lt;p&gt;Q. As a developer, I want to be able to remove the last element of my array and I want to also be able to add a new element to the beginning of my array. Which two array methods should I use?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;concat() and shift()&lt;/li&gt;
&lt;li&gt;forEach() and pop()&lt;/li&gt;
&lt;li&gt;push() and sort()&lt;/li&gt;
&lt;li&gt;pop() and unshift()&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Answer - pop() and unshift()&lt;/p&gt;

&lt;p&gt;The pop array method removes the last element of an array and the unshift method adds an element to beginning of the array.&lt;/p&gt;

&lt;p&gt;Q. How do we access a value stored in an object?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Period notation, Square bracket notation&lt;/li&gt;
&lt;li&gt;Dot notation, Bracket notation&lt;/li&gt;
&lt;li&gt;Dot notation, Curl bracket notation&lt;/li&gt;
&lt;li&gt;Equal notation, Abstract notation&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Answer - Dot Notation &amp;amp; Bracket Notation&lt;/p&gt;

&lt;p&gt;We have two ways of accessing data inside of an object, dot notation and bracket notation.&lt;/p&gt;

&lt;p&gt;Q. What is an object method?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;An array saved inside of an object&lt;/li&gt;
&lt;li&gt;Keys in an object that have a number assigned to it&lt;/li&gt;
&lt;li&gt;A function associated with an object&lt;/li&gt;
&lt;li&gt;A function that takes an object for an argument&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Answer - A function associated with an object&lt;/p&gt;

&lt;p&gt;Q. What is the purpose of the 'This' operator?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The keyword 'This' refers to the object it is in. 'This' changes based on which object it is in when being called.&lt;/li&gt;
&lt;li&gt;This' is an array where we can easily store global variables for when we need access to them.&lt;/li&gt;
&lt;li&gt;This' keyword lets us make a reference to our window gives us access to special object methods.&lt;/li&gt;
&lt;li&gt;This' keyword allows us to specify certain variables to it which can be used in the global scope.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Answer - The keyword 'This' refers to the object it is in. 'This' changes based on which object it is in when being called.&lt;/p&gt;

&lt;p&gt;Q. From the reason listed below which is NOT true about JavaScript.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;JavaScript increases interactivity of our websites.&lt;/li&gt;
&lt;li&gt;Javascript allows developers to create richer interfaces for the users.&lt;/li&gt;
&lt;li&gt;JavaScript lets provide the user immediate feedback upon an action.&lt;/li&gt;
&lt;li&gt;JavaScripts handles numbers better than most programming languages.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Answer - JavaScripts handles numbers better than most programming languages.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>wecoded</category>
    </item>
    <item>
      <title>For-Loop in JavaScript</title>
      <dc:creator>Arya Krishna</dc:creator>
      <pubDate>Fri, 13 May 2022 05:45:28 +0000</pubDate>
      <link>https://forem.com/aryakris/for-loop-in-javascript-169e</link>
      <guid>https://forem.com/aryakris/for-loop-in-javascript-169e</guid>
      <description>&lt;p&gt;There's a limitation of only accessing arrays based on the index value. We would be repeating a lot of code when we are doing this. Instead we can use a &lt;code&gt;for-loop&lt;/code&gt; to execute code more than once. &lt;/p&gt;

&lt;p&gt;One of the primary reasons for us to use our for-loop is because we can loop over the items in our array. For-loops are often used to iterate over arrays.For-loops are just iterative repeatable blocks of code that is going to run a certain number of times. How many times our loop is going to run is based on for-loop definition.&lt;/p&gt;

&lt;p&gt;Let's breakdown our for-loop a bit more in detail.&lt;/p&gt;

&lt;p&gt;Every for loop begins with a FOR keyword followed by a set of parentheses. This looks familiar to our if statements. Followed by parentheses there will be curly brackets.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;for (
var i = 0;i &amp;lt; 5; i++) {
This block of code will run each time
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Going into our for-loop we get three parts. In the block of code above &lt;code&gt;var i = 0&lt;/code&gt; is our declarative statement - where we come and declare our variables which can be used through out the process. We are going to start at position zero is what we are defining here.&lt;code&gt;i &amp;lt; 5&lt;/code&gt; determines when our loop should be broken. In other words our condition no longer evaluates to true when i is less than 5. This brings us to the last part &lt;code&gt;i++&lt;/code&gt; where we increment or modify our pointer to change how we are moving through the loop. i++ means &lt;code&gt;i = i+1&lt;/code&gt; which then brings us back to the condition check. &lt;/p&gt;

&lt;p&gt;In for-loop we also take the advantage of arrays length property. We loop until we are one less than the array length. In a for-loop we are not looping over an array but we are looping over a position to point in to each part of our array from start to finish. &lt;/p&gt;

</description>
      <category>javascript</category>
      <category>codenewbie</category>
      <category>wecoded</category>
      <category>beginners</category>
    </item>
    <item>
      <title>JavaScript Technical Interview Questions 1</title>
      <dc:creator>Arya Krishna</dc:creator>
      <pubDate>Thu, 12 May 2022 06:31:01 +0000</pubDate>
      <link>https://forem.com/aryakris/javascript-technical-interview-questions-1-1mel</link>
      <guid>https://forem.com/aryakris/javascript-technical-interview-questions-1-1mel</guid>
      <description>&lt;p&gt;Q. Inside the HTML document, where do you place your JavaScript code?&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Inside the &amp;lt;head&amp;gt; element&lt;/code&gt;&lt;br&gt;
&lt;code&gt;In the &amp;lt;footer&amp;gt; element&lt;/code&gt;&lt;br&gt;
&lt;code&gt;Inside the &amp;lt;script&amp;gt; element&lt;/code&gt;&lt;br&gt;
&lt;code&gt;Inside the &amp;lt;link&amp;gt; element&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Answer - &lt;code&gt;Inside the &amp;lt;script&amp;gt; element&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Q. What operator is used to assign a value to a declared variable?&lt;/p&gt;

&lt;p&gt;&lt;code&gt;Colon (:)&lt;/code&gt;&lt;br&gt;
&lt;code&gt;Equal sign (=)&lt;/code&gt;&lt;br&gt;
&lt;code&gt;Question mark (?)&lt;/code&gt;&lt;br&gt;
&lt;code&gt;Double-equal (==)&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Answer - &lt;code&gt;Equal sign (=)&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Q. What are the six primitive data types in JavaScript?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;string, number, boolean, bigInt, symbol, undefined&lt;/li&gt;
&lt;li&gt;sentence, float, data, bigInt, symbol, undefined&lt;/li&gt;
&lt;li&gt;string, num, falsy, bigInt, symbol, undefined&lt;/li&gt;
&lt;li&gt;sentence, int, truthy, bigInt, symbol, undefined&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Answer - `string, number, boolean, bigInt, symbol, undefined&lt;/p&gt;

&lt;p&gt;Q. What is the difference between &amp;amp;&amp;amp; and ||?&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;code&gt;&lt;br&gt;
The logical operator &amp;amp;&amp;amp; returns true if none of the expressions are true while the logical operator || returns true if one expression or the other returns true.&lt;br&gt;
&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;code&gt;&lt;br&gt;
The logical operator &amp;amp;&amp;amp; returns true if both expressions are true while the logical operator || returns true if one expression or the other returns true.&lt;br&gt;
&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;code&gt;&lt;br&gt;
The logical operator &amp;amp;&amp;amp; returns true if one expression is true while the logical operator || returns true if both expressions return true.&lt;br&gt;
&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;code&gt;&lt;br&gt;
The logical operator &amp;amp;&amp;amp; returns true if both expressions are true while the logical operator || returns false if one expression or the other returns true.&lt;br&gt;
&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;br&gt;
Answer - &lt;br&gt;
&lt;code&gt;&lt;/code&gt;&lt;code&gt;&lt;br&gt;
The logical operator &amp;amp;&amp;amp; returns true if both expressions are true while the logical operator || returns true if one expression or the other returns true.&lt;br&gt;
&lt;/code&gt;&lt;code&gt;&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Q. How do we declare a conditional statement in JavaScript?&lt;/p&gt;

&lt;p&gt;&lt;code&gt;for loop&lt;/code&gt;&lt;br&gt;
&lt;code&gt;while loop&lt;/code&gt;&lt;br&gt;
&lt;code&gt;if...else&lt;/code&gt;&lt;br&gt;
&lt;code&gt;difference...between&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Answer -&lt;br&gt;
&lt;code&gt;if...else&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Q. From the given array which index is the letter 'b' on? ['a', 'b', 'c', 'd']&lt;/p&gt;

&lt;p&gt;0&lt;br&gt;
3&lt;br&gt;
2&lt;br&gt;
1&lt;/p&gt;

&lt;p&gt;Answer - 1&lt;/p&gt;

&lt;p&gt;Q. How do we stop a loop from from repeating indefinitely?&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;We have to explicitly end the loop with the break keyword.&lt;/li&gt;
&lt;li&gt;A loop will stop executing when the condition is true.&lt;/li&gt;
&lt;li&gt;A loop will stop executing when the condition is false.&lt;/li&gt;
&lt;li&gt;When we have iterated through half of the condition.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Answer - &lt;code&gt;A loop will stop executing when the condition is false.&lt;/code&gt;&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>beginners</category>
      <category>wecoded</category>
      <category>codenewbie</category>
    </item>
  </channel>
</rss>
