<?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: Asim Shrestha</title>
    <description>The latest articles on DEV Community by Asim Shrestha (@asimnp).</description>
    <link>https://dev.to/asimnp</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%2F488213%2F4d6faef0-d13e-41cc-93fa-791e92e0f60d.png</url>
      <title>DEV Community: Asim Shrestha</title>
      <link>https://dev.to/asimnp</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/asimnp"/>
    <language>en</language>
    <item>
      <title>How to Set Up a New TypeScript Project</title>
      <dc:creator>Asim Shrestha</dc:creator>
      <pubDate>Fri, 05 Jul 2024 14:36:49 +0000</pubDate>
      <link>https://dev.to/asimnp/how-to-set-up-a-new-typescript-project-56ae</link>
      <guid>https://dev.to/asimnp/how-to-set-up-a-new-typescript-project-56ae</guid>
      <description>&lt;h3&gt;
  
  
  TypeScript is JavaScript with syntax for types.
&lt;/h3&gt;

&lt;p&gt;TypeScript is a strongly typed programming language that builds on JavaScript, giving you better tooling at any scale. &lt;code&gt;.ts&lt;/code&gt; is the extension of TypeScript file.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. Setup
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Before installing TypeScript on your system, first you need to install Node.js. You can check the &lt;a href="https://nodejs.org/en/download/package-manager"&gt;official documentation&lt;/a&gt; for installating it.&lt;/li&gt;
&lt;li&gt;Type the following command to check to ensure Node.js is install. The command gives out the Node.js version.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; node &lt;span class="nt"&gt;--version&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Example:&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5j67d08acz8oq5okkku9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F5j67d08acz8oq5okkku9.png" alt="Node.js version check" width="800" height="114"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create a new directory and go inside it.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;mkdir &lt;/span&gt;code &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;cd &lt;/span&gt;code
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Initialize &lt;code&gt;package.json&lt;/code&gt; file. Its a file which contains all the packages or dependencies install for the application.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; npm init &lt;span class="nt"&gt;-y&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Install TypeScript
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; npm &lt;span class="nb"&gt;install &lt;/span&gt;typescript &lt;span class="nt"&gt;--save-dev&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;--save-dev&lt;/code&gt; flag indicate we are installing TypeScript for development purpose and we don't need this package for production.&lt;/li&gt;
&lt;li&gt;Initialize &lt;a href="https://www.typescriptlang.org/docs/handbook/tsconfig-json.html"&gt;TypeScript config file&lt;/a&gt;.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; npx tsc &lt;span class="nt"&gt;--init&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  2. Set Up Project
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Create new files and folders inside the &lt;code&gt;code&lt;/code&gt; folder.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;touch &lt;/span&gt;index.html
&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;mkdir &lt;/span&gt;src dest
&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;touch &lt;/span&gt;src/main.ts
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Folders and files tree&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpc68qgmp8k3bh10wvdcb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fpc68qgmp8k3bh10wvdcb.png" alt="TypeScript Project Structure" width="262" height="288"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;NOTE:&lt;/strong&gt; Browser can only understand JavaScript, so you need to compile the TypeScript into Javascript.&lt;/li&gt;
&lt;li&gt; Specify where to output the compile JavaScript. Customize the &lt;code&gt;tsconfig.json&lt;/code&gt; file to output inside the &lt;code&gt;.dest&lt;/code&gt; folder.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="err"&gt;//&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;tsconfig.json&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="err"&gt;...&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="nl"&gt;"outDir"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"./dest"&lt;/span&gt;&lt;span class="err"&gt;,&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;/*&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;Specify&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;an&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;output&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;folder&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;for&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;all&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;emitted&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;files.&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;*/&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="err"&gt;...&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;...&lt;/code&gt; three dots indicates their is more code.&lt;/li&gt;
&lt;li&gt;Create a script that will watch your TypeScript file changes and automatically compile it into JavaScript. We will create a new script &lt;code&gt;start&lt;/code&gt; inside the &lt;code&gt;package.json&lt;/code&gt; file.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight json"&gt;&lt;code&gt;&lt;span class="err"&gt;//&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="err"&gt;package.json&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"code"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"version"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"1.0.0"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"main"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"index.js"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"scripts"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"start"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"tsc --watch"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;},&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"keywords"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[],&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"author"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"license"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"ISC"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"description"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;""&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="nl"&gt;"devDependencies"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="w"&gt;
    &lt;/span&gt;&lt;span class="nl"&gt;"typescript"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"^5.5.3"&lt;/span&gt;&lt;span class="w"&gt;
  &lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="w"&gt;
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;We will add some code inside our TypeScript file &lt;code&gt;src/main.ts&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;username&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;string&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;Jane Doe&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nx"&gt;console&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;log&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;`Hello, &lt;/span&gt;&lt;span class="p"&gt;${&lt;/span&gt;&lt;span class="nx"&gt;username&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="s2"&gt;!`&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Now, we will run the &lt;code&gt;start&lt;/code&gt; script to watch the TypeScript file changes.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; npm run start
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;The &lt;code&gt;start&lt;/code&gt; script command will automatically create a new file called &lt;code&gt;main.js&lt;/code&gt; inside the &lt;code&gt;dest&lt;/code&gt; folder which is our compiled JavaScript file.&lt;/li&gt;
&lt;li&gt;Inside our &lt;code&gt;index.html&lt;/code&gt; we will link our compiled JavaScript file and open it on the browser. Then, check the console to verify the message is logged.
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="c"&gt;&amp;lt;!-- index.html --&amp;gt;&lt;/span&gt;
&lt;span class="cp"&gt;&amp;lt;!DOCTYPE html&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;html&lt;/span&gt; &lt;span class="na"&gt;lang=&lt;/span&gt;&lt;span class="s"&gt;"en"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;head&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;charset=&lt;/span&gt;&lt;span class="s"&gt;"UTF-8"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;meta&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"viewport"&lt;/span&gt; &lt;span class="na"&gt;content=&lt;/span&gt;&lt;span class="s"&gt;"width=device-width, initial-scale=1.0"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;title&amp;gt;&lt;/span&gt;TypeScript Project Set Up&lt;span class="nt"&gt;&amp;lt;/title&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Press &lt;span class="nt"&gt;&amp;lt;code&amp;gt;&lt;/span&gt;F12&lt;span class="nt"&gt;&amp;lt;/code&amp;gt;&lt;/span&gt; and check your browser console. There you will see the message which we have written.&lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt; 

&lt;span class="nt"&gt;&amp;lt;script &lt;/span&gt;&lt;span class="na"&gt;src=&lt;/span&gt;&lt;span class="s"&gt;"./dest/main.js"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/html&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Now, you can add your code and create your project!&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>typescript</category>
      <category>setup</category>
      <category>javascript</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Vue 3 beginners roadmap resources. FREE</title>
      <dc:creator>Asim Shrestha</dc:creator>
      <pubDate>Fri, 18 Mar 2022 14:14:07 +0000</pubDate>
      <link>https://dev.to/asimnp/vue3-beginners-roadmap-resources-free-43fo</link>
      <guid>https://dev.to/asimnp/vue3-beginners-roadmap-resources-free-43fo</guid>
      <description>&lt;p&gt;&lt;strong&gt;1. The best way to learn Vue.js in 2022 - CRASH COURSE&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=bzlFvd0b65c"&gt;Vue Master&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Vue 3 Tutorial for Beginners&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=YrxBCBibVo0&amp;amp;list=PL4cUxeGkcC9hYYGbV60Vq3IXYNfDk8At1"&gt;Net Ninja&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Learn Vue 3: Step by Step&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://laracasts.com/series/learn-vue-3-step-by-step"&gt;Laracasts&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Vue 3 Official Tutorial&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://vuejs.org/tutorial/#step-1"&gt;Official Tutorial&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Weather App Build (Vue 3 &amp;amp; Tailwind)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://www.youtube.com/watch?v=gUsBaB5ViAo&amp;amp;list=PL4cUxeGkcC9hfoy8vFQ5tbXO3vY0xhhUZ&amp;amp;ab_channel=TheNetNinja"&gt;Net Ninja&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. Vue 3 Official Projects&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://vuejs.org/examples/#hello-world"&gt;Official Projects&lt;/a&gt;&lt;/p&gt;

</description>
      <category>vue</category>
      <category>beginners</category>
      <category>javascript</category>
      <category>programming</category>
    </item>
    <item>
      <title>Vue3 + Vite + Boostrap 5 + Sass Setup</title>
      <dc:creator>Asim Shrestha</dc:creator>
      <pubDate>Fri, 18 Mar 2022 07:42:15 +0000</pubDate>
      <link>https://dev.to/asimnp/vue3-vite-boostrap-5-sass-setup-2fcn</link>
      <guid>https://dev.to/asimnp/vue3-vite-boostrap-5-sass-setup-2fcn</guid>
      <description>&lt;h3&gt;
  
  
  1: Installing Vue3 using Vite
&lt;/h3&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;

&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; npm init vue@latest


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;This command will install and execute &lt;strong&gt;create-vue&lt;/strong&gt;, the official Vue project scaffolding tool.&lt;/li&gt;
&lt;li&gt;You will be presented with prompts for a number of optional features such as TypeScript and testing support:&lt;/li&gt;
&lt;/ul&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%2Fuploads%2Farticles%2Fcdekgh8ohz3szhysc0vw.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%2Fuploads%2Farticles%2Fcdekgh8ohz3szhysc0vw.png" alt="Image description"&gt;&lt;/a&gt;&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%2Fuploads%2Farticles%2Fh8yrj2ee8i0qujjoh1nj.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%2Fuploads%2Farticles%2Fh8yrj2ee8i0qujjoh1nj.png" alt="Image description"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Browser url&lt;/strong&gt;: &lt;a href="http://localhost:3000/" rel="noopener noreferrer"&gt;http://localhost:3000/&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2: File cleanup &amp;amp; Display simple Hello World!
&lt;/h3&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;

&lt;p&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;rm&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; src/assets/&lt;br&gt;
&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;rm&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; src/components/&lt;/p&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight vue"&gt;&lt;code&gt;

&lt;p&gt;&lt;span class="c"&gt;&amp;lt;!-- src/App.vue --&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;span class="nt"&gt;&amp;lt;&lt;/span&gt;&lt;span class="k"&gt;template&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;
  &lt;span class="nt"&gt;&amp;lt;h1&amp;gt;&lt;/span&gt;Hello World!&lt;span class="nt"&gt;&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;br&gt;
&lt;span class="nt"&gt;&amp;lt;/&lt;/span&gt;&lt;span class="k"&gt;template&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;&lt;/p&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h3&gt;
&lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  3: Install Boostrap 5 &amp;amp; Setup&lt;br&gt;
&lt;/h3&gt;
&lt;br&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;

&lt;p&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; npm &lt;span class="nb"&gt;install &lt;/span&gt;bootstrap&lt;/p&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;

&lt;p&gt;&lt;span class="c1"&gt;// src/main.js&lt;/span&gt;&lt;br&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;createApp&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;vue&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;br&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;App&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;./App.vue&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;bootstrap/dist/css/bootstrap.css&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span class="nf"&gt;createApp&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;App&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;mount&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;#app&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="s2"&gt;bootstrap/dist/js/bootstrap.js&lt;/span&gt;&lt;span class="dl"&gt;"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;/p&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h3&gt;
&lt;br&gt;
  &lt;br&gt;
  &lt;br&gt;
  4: Sass Setup&lt;br&gt;
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Vite does provide built-in support for .scss, .sass, .less, .styl and .stylus files. There is no need to install Vite-specific plugins for them, but the corresponding pre-processor itself must be installed:
```sh
&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;npm install -D sass&lt;/p&gt;
&lt;/blockquote&gt;




&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight vue"&gt;&lt;code&gt;

&lt;span class="ni"&gt;&amp;amp;lt;&lt;/span&gt;!-- src/App.vue --&lt;span class="ni"&gt;&amp;amp;gt;&lt;/span&gt;
&lt;span class="ni"&gt;&amp;amp;lt;&lt;/span&gt;template&lt;span class="ni"&gt;&amp;amp;gt;&lt;/span&gt;
  &lt;span class="ni"&gt;&amp;amp;lt;&lt;/span&gt;h1&lt;span class="ni"&gt;&amp;amp;gt;&lt;/span&gt;Hello World!&lt;span class="ni"&gt;&amp;amp;lt;&lt;/span&gt;/h1&lt;span class="ni"&gt;&amp;amp;gt;&lt;/span&gt;
&lt;span class="ni"&gt;&amp;amp;lt;&lt;/span&gt;/template&lt;span class="ni"&gt;&amp;amp;gt;&lt;/span&gt;

&lt;span class="ni"&gt;&amp;amp;lt;&lt;/span&gt;style lang="scss"&lt;span class="ni"&gt;&amp;amp;gt;&lt;/span&gt;
h1 {
  color: green;

  &lt;span class="ni"&gt;&amp;amp;amp;&lt;/span&gt;:hover {
    color: greenyellow;
  }
}
&lt;span class="ni"&gt;&amp;amp;lt;&lt;/span&gt;/style&lt;span class="ni"&gt;&amp;amp;gt;&lt;/span&gt;


&lt;span class="nt"&gt;&amp;lt;/code&amp;gt;&amp;lt;/pre&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;h3&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;a&lt;/span&gt; &lt;span class="na"&gt;name=&lt;/span&gt;&lt;span class="s"&gt;"done"&lt;/span&gt; &lt;span class="na"&gt;href=&lt;/span&gt;&lt;span class="s"&gt;"#done"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/a&amp;gt;&lt;/span&gt;
  Done!!!
&lt;span class="nt"&gt;&amp;lt;/h3&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>vue</category>
      <category>vite</category>
      <category>boostrap5</category>
      <category>sass</category>
    </item>
    <item>
      <title>Things not to forgot while learning coding as a beginner.</title>
      <dc:creator>Asim Shrestha</dc:creator>
      <pubDate>Sat, 20 Nov 2021 13:42:52 +0000</pubDate>
      <link>https://dev.to/asimnp/things-not-to-forgot-while-learning-coding-as-a-beginner-4l46</link>
      <guid>https://dev.to/asimnp/things-not-to-forgot-while-learning-coding-as-a-beginner-4l46</guid>
      <description>&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Taking your first tutorial:&lt;/strong&gt;
Complete the tutorial. Understand everything, shallow understanding is fine while starting. Write code by yourself even it feels tedious. Do not copy &amp;amp; paste.
You do not need to understand exactly how the functions work internally, but you do need to be able to import and use them correctly.
Don't rush to complete the tutorial. If you feel like skipping any topics from the tutorial, take a break and come back later.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;It's ok if you don't understand:&lt;/strong&gt; When learning new things, most of the time you might don't understand the stuff, it's ok. You can look that topics from other sources. To become successful you have to cross the difficulties. Just don't runway from it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Code every day:&lt;/strong&gt; To become good at coding you have to code every single day. Even if for just 20 minutes a day. You just have to be consistent.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Add at least 2 new features to the project after completing the tutorial:&lt;/strong&gt;
If you have understood the tutorial it will not be a problem. If you don't have any ideas for the features, you can recreate the same project from scratch.
Following the tutorial, you are not using your brain. So, you have to use your brain by creating projects by yourself.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Tutorial Hell&lt;/strong&gt;
When you keep on watching tutorials and not building projects by yourself. So, once you feel like you are in a tutorial hell, then stop watching tutorials and start building projects.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Build a new project &amp;amp; complete it:&lt;/strong&gt;
Starting a new project is easily but completing is difficult. So, the first thing you have to think of is a project which you are interested in creating. If you are not interested in the project which you are building then you will skip or not complete the project if any difficultly occur during building it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Maintaining the project:&lt;/strong&gt;
If we say building and completing a project is level 1, then maintaining the project is level 2. To become a good developer you should start maintaining your project.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Creating big project:&lt;/strong&gt;
When you are done creating 3 or 4 simple projects you can start creating complex projects. For example &lt;strong&gt;simple project 1:&lt;/strong&gt; simple todo app, &lt;strong&gt;simple project 2:&lt;/strong&gt; simple digital clock, etc. &lt;strong&gt;Complex project:&lt;/strong&gt; Todo app with crud functionality,
in next iteration adding reminder functionality, and so on.
Add new features to your project one step at a time. If you keep on adding new features to a simple project, then it will start to grow into a big project.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Habit of Figuring out your problems:&lt;/strong&gt; Instead of running away from your challenges, face them. You should ask questions to yourself. How can I solve this problem?&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Get good at GIT:&lt;/strong&gt; Git is a tool to track or capture the history of your project and help to collaborate with other developers remotely.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Read other people's code:&lt;/strong&gt; Read other people's code whose coding level is the same as yours or a little above your level.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data Structure and Algorithms:&lt;/strong&gt; Have at least a basic understanding of different commonly used algorithms.&lt;/li&gt;
&lt;/ol&gt;

</description>
      <category>beginners</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Learning new tech as a beginner.</title>
      <dc:creator>Asim Shrestha</dc:creator>
      <pubDate>Fri, 09 Jul 2021 14:47:40 +0000</pubDate>
      <link>https://dev.to/asimnp/learning-new-tech-as-a-beginners-2gl7</link>
      <guid>https://dev.to/asimnp/learning-new-tech-as-a-beginners-2gl7</guid>
      <description>&lt;h3&gt;
  
  
  1. Code everyday.
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;To become good a coding you have to code every single day. Even if for just 20 minutes a day. You just have to be consistent.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Take your first tutorial.
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Complete the tutorial. Understand everything, shallow understanding is fine while starting.&lt;/li&gt;
&lt;li&gt;You do not need to understand exactly how the functions work, but you do need to be able to import and use them correctly.&lt;/li&gt;
&lt;li&gt;Don't rush to complete the tutorial. If you feel like skipping any topics from tutorial, take a break and come back later.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. Add at least 2 new features to the project after completing the tutorial.
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Following tutorial, we are not using our brain. So, we have to use our brain and think ourselves trying to add simple features at least. If you have understood the tutorial it will not a big deal.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  4. Build a new projects &amp;amp; complete it.
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Ideas don't come out fully formed. They only become clear as you work on them. YOU JUST HAVE TO GET STARTED.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Build a complete new project with the knowledge which you have acquire from the tutorial.&lt;/li&gt;
&lt;li&gt;If you like your new project which you are building then keep on updating(iterating) it.&lt;/li&gt;
&lt;li&gt;Instead of making multiple simple projects, build a big project.&lt;/li&gt;
&lt;li&gt;If you keep on adding new features to a simple project, then it will start to grow to a big project.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  5. Habit of Figuring out anything.
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Face your challenges.&lt;/li&gt;
&lt;li&gt;How can I add this features to my project?

&lt;ul&gt;
&lt;li&gt;Reading documentation.&lt;/li&gt;
&lt;li&gt;Learning from an article.&lt;/li&gt;
&lt;li&gt;Watching videos.&lt;/li&gt;
&lt;li&gt;Asking for help in stack overflow or any other platform.&lt;/li&gt;
&lt;/ul&gt;


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

</description>
      <category>programming</category>
      <category>codenewbie</category>
      <category>beginners</category>
      <category>python</category>
    </item>
    <item>
      <title>What to do when tackling a new project.</title>
      <dc:creator>Asim Shrestha</dc:creator>
      <pubDate>Sun, 18 Oct 2020 03:00:36 +0000</pubDate>
      <link>https://dev.to/asimnp/what-to-do-when-tackling-a-new-project-3n0a</link>
      <guid>https://dev.to/asimnp/what-to-do-when-tackling-a-new-project-3n0a</guid>
      <description>&lt;h3&gt;
  
  
  Step 1
&lt;/h3&gt;

&lt;p&gt;Whenever you're tackling a new project, it can be tempting to dive right into writing code. But more often than not, It's best to take a step and consider the bigger picture. I recommend first drawing up a high-level plan for what your program needs to do. Don't think about the actual code yet - you can worry about that later. Right now, stick to broad strokes.&lt;/p&gt;

&lt;p&gt;For example, your phone and email address extractor project will need to do the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Get the text off the clipboard.&lt;/li&gt;
&lt;li&gt;Find all phone numbers and email addresses in the text.&lt;/li&gt;
&lt;li&gt;Paste them onto the clipboard.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Step 2
&lt;/h2&gt;

&lt;p&gt;Now you can start thinking about how think might work in code. the code will need to do the following:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Use the pyperclip module to copy and paste strings.&lt;/li&gt;
&lt;li&gt;Create two regexes, one for matching phone numbers and the other for matching email addresses.&lt;/li&gt;
&lt;li&gt;Neatly format the matched strings into a single string to paste.&lt;/li&gt;
&lt;li&gt;Display some kind of message if no matches were found in the text.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>beginners</category>
      <category>codenewbie</category>
    </item>
    <item>
      <title>Guess the number</title>
      <dc:creator>Asim Shrestha</dc:creator>
      <pubDate>Mon, 12 Oct 2020 15:54:58 +0000</pubDate>
      <link>https://dev.to/asimnp/guess-the-number-5am5</link>
      <guid>https://dev.to/asimnp/guess-the-number-5am5</guid>
      <description>&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="kn"&gt;from&lt;/span&gt; &lt;span class="n"&gt;random&lt;/span&gt; &lt;span class="kn"&gt;import&lt;/span&gt; &lt;span class="n"&gt;randint&lt;/span&gt;

&lt;span class="n"&gt;secret_number&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;randint&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;  &lt;span class="c1"&gt;# guess number between 0 to 10 (including)
&lt;/span&gt;&lt;span class="n"&gt;guess_count&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;

&lt;span class="k"&gt;try&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="bp"&gt;True&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
        &lt;span class="n"&gt;user_number&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;int&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;input&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Guess the number: &lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
        &lt;span class="n"&gt;guess_count&lt;/span&gt; &lt;span class="o"&gt;+=&lt;/span&gt; &lt;span class="mi"&gt;1&lt;/span&gt;

        &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;user_number&lt;/span&gt; &lt;span class="o"&gt;==&lt;/span&gt; &lt;span class="n"&gt;secret_number&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Correct&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Your guess count:&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;guess_count&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;break&lt;/span&gt;
        &lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="n"&gt;user_number&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="n"&gt;secret_number&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Your number is greater than the secret number.&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;continue&lt;/span&gt;
        &lt;span class="k"&gt;elif&lt;/span&gt; &lt;span class="n"&gt;user_number&lt;/span&gt; &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; &lt;span class="n"&gt;secret_number&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Your number is less than the secret number.&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
            &lt;span class="k"&gt;continue&lt;/span&gt;
        &lt;span class="k"&gt;else&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
            &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Invalid&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;except&lt;/span&gt; &lt;span class="nb"&gt;ValueError&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="nf"&gt;print&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="s"&gt;Please enter integer only.&lt;/span&gt;&lt;span class="sh"&gt;'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



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