<?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: Dev Pattani</title>
    <description>The latest articles on DEV Community by Dev Pattani (@devpattani).</description>
    <link>https://dev.to/devpattani</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%2F1410044%2Ffadede45-8b38-4f9a-b4fc-28e0c12845f0.png</url>
      <title>DEV Community: Dev Pattani</title>
      <link>https://dev.to/devpattani</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/devpattani"/>
    <language>en</language>
    <item>
      <title>Day 02 : Script Loading Methods, Variables, Scopes, and Error Handling in JavaScript</title>
      <dc:creator>Dev Pattani</dc:creator>
      <pubDate>Mon, 08 Apr 2024 18:00:43 +0000</pubDate>
      <link>https://dev.to/devpattani/day-2-script-loading-methods-variables-scopes-and-error-handling-in-javascript-4f0i</link>
      <guid>https://dev.to/devpattani/day-2-script-loading-methods-variables-scopes-and-error-handling-in-javascript-4f0i</guid>
      <description>&lt;p&gt;Hey everyone! 🚀&lt;/p&gt;

&lt;p&gt;Today, on &lt;strong&gt;day 2 of my JavaScript challenge&lt;/strong&gt;, I explored script loading methods, variables, scopes, and error handling in JavaScript.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Script Loading Methods&lt;/strong&gt;:

&lt;ul&gt;
&lt;li&gt;JavaScript offers two main methods for loading scripts: &lt;strong&gt;internal&lt;/strong&gt; and &lt;strong&gt;external&lt;/strong&gt; loading.&lt;/li&gt;
&lt;li&gt;Internal loading involves placing the script directly within the HTML file, while external loading refers to linking an external script file.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Internal Method
&lt;/h2&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%2Fe1bv7xex6o15mue1l2jw.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%2Fe1bv7xex6o15mue1l2jw.png" alt="jS internal method" width="800" height="552"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  External Method
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;HTML File&lt;/em&gt;&lt;/strong&gt;&lt;br&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%2F4t6luc1ib3u89kdn2ejv.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%2F4t6luc1ib3u89kdn2ejv.png" alt="jS external method" width="800" height="531"&gt;&lt;/a&gt;&lt;br&gt;
   &lt;strong&gt;&lt;em&gt;JS File&lt;/em&gt;&lt;/strong&gt;&lt;br&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%2Fs5c443a4nys8spocfekh.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%2Fs5c443a4nys8spocfekh.png" alt="jS external method" width="800" height="342"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Attributes like &lt;strong&gt;'defer'&lt;/strong&gt; and &lt;strong&gt;'async'&lt;/strong&gt; control the execution behavior of external scripts.

&lt;ul&gt;
&lt;li&gt;The 'defer' attribute ensures that the script is executed only after the HTML content is fully loaded.&lt;/li&gt;
&lt;li&gt;The 'async' attribute allows the script to be loaded asynchronously, meaning it doesn't block the rendering of the page.&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%2Fdlmt0ja1rmiq16bhsn32.png" alt="defer vs async" width="752" height="376"&gt;
&lt;/li&gt;
&lt;/ul&gt;


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

&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Types of Errors in JavaScript&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;JavaScript code can encounter various types of errors, including syntax errors, runtime errors, and logic errors.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Syntax errors&lt;/strong&gt; occur when the code violates the rules of the language.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Runtime errors&lt;/strong&gt; occur during the execution of the code, such as trying to access an undefined variable.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Logic errors&lt;/strong&gt;, also known as bugs, occur when the code does not produce the expected output due to flawed logic.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Variables in JavaScript&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Variables in JavaScript are used to store and manipulate data.&lt;/li&gt;
&lt;li&gt;Keywords like &lt;strong&gt;'let'&lt;/strong&gt;, &lt;strong&gt;'const'&lt;/strong&gt;, and &lt;strong&gt;'var'&lt;/strong&gt; are used to declare variables.&lt;/li&gt;
&lt;li&gt;'let' and 'const' are &lt;strong&gt;block-scoped&lt;/strong&gt;, meaning they are limited to the block of code in which they are declared.&lt;/li&gt;
&lt;li&gt;The 'var' keyword declares function-scoped variables that are accessible within the function in which they are defined.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Scopes in JavaScript&lt;/strong&gt;:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Scopes in JavaScript determine the accessibility of variables in different parts of the code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Global scope&lt;/strong&gt;: Variables declared outside of any function are in the global scope and can be accessed anywhere in the code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Local scope&lt;/strong&gt;: Variables declared inside a function are in the local scope and can only be accessed within that function.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Block scope&lt;/strong&gt;: Introduced with 'let' and 'const', block scope restricts variable accessibility to the block of code in which they are defined (e.g., within loops or conditionals).&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Understanding scopes is crucial for writing clean and efficient JavaScript code and avoiding variable conflicts.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;In the upcoming days, we will explore more about variables and scopes.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Stay tuned for more updates on my JavaScript challenge journey! 🌟&lt;/p&gt;

&lt;p&gt;Let's keep coding and learning together! 💻✨&lt;/p&gt;

&lt;p&gt;Looking forward to sharing more insights with you all.&lt;/p&gt;

&lt;p&gt;Happy coding! 🚀&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;DEV PATTANI&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
    <item>
      <title>Day 01: Introduction to HTML, CSS, and JavaScript</title>
      <dc:creator>Dev Pattani</dc:creator>
      <pubDate>Sun, 07 Apr 2024 16:00:00 +0000</pubDate>
      <link>https://dev.to/devpattani/day-01-introduction-to-html-css-and-javascript-54c1</link>
      <guid>https://dev.to/devpattani/day-01-introduction-to-html-css-and-javascript-54c1</guid>
      <description>&lt;p&gt;Today marked the beginning of my 100-day journey to master JavaScript, starting with understanding the fundamentals of web development. I delved into the world of HTML, CSS, and JavaScript, the three core technologies that power the web.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;HTML (HyperText Markup Language):&lt;/strong&gt;&lt;br&gt;
HTML is the foundation of web development, used to structure the content of web pages. It consists of elements that define the different parts of a webpage, such as headings, paragraphs, images, and links.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CSS (Cascading Style Sheets):&lt;/strong&gt;&lt;br&gt;
CSS is responsible for styling the HTML elements, making them visually appealing. It controls the layout, colors, fonts, and overall design of a webpage. CSS allows developers to create responsive and attractive web designs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;JavaScript:&lt;/strong&gt;&lt;br&gt;
JavaScript is a powerful programming language that adds interactivity and dynamic behavior to web pages. It can manipulate HTML elements, handle events, make asynchronous requests to servers, and create interactive features like sliders, forms, and animations. JavaScript is unique in that it can be used both on the client-side and server-side of web development.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What can JavaScript really do?&lt;/strong&gt;&lt;br&gt;
JavaScript is a versatile language that can perform a wide range of tasks on both the client-side and server-side of web development. Some of the key capabilities of JavaScript include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;DOM manipulation: Changing the content and style of HTML elements on a webpage.&lt;/li&gt;
&lt;li&gt;Event handling: Responding to user actions such as clicks, scrolls, and keyboard inputs.&lt;/li&gt;
&lt;li&gt;Asynchronous requests: Fetching data from servers without reloading the entire page.&lt;/li&gt;
&lt;li&gt;Form validation: Checking user inputs before submitting data.&lt;/li&gt;
&lt;li&gt;Animations and effects: Creating dynamic and interactive elements on a webpage.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Interpreted Vs. Compiled Code:&lt;/strong&gt;&lt;br&gt;
JavaScript is an interpreted language, meaning that the code is executed line by line from top to bottom at runtime by the browser. This allows for quick development and easy debugging. In contrast, compiled languages like C++ or Java are translated into machine code before execution, resulting in faster performance but requiring a compilation step before running the code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Server-side Vs. Client-side Code:&lt;/strong&gt;&lt;br&gt;
Server-side code runs on the server and is responsible for processing requests, handling data, and generating dynamic content before sending it to the client. Common server-side languages include Node.js, Python, PHP, and Ruby on Rails. JavaScript can also be used on the server-side with platforms like Node.js. On the other hand, client-side code runs in the user's browser and is responsible for creating interactive user interfaces and handling user events. JavaScript is the primary language for client-side development.&lt;/p&gt;

&lt;p&gt;As I wrap up Day 01 of my learning journey, I am excited to explore more advanced concepts in the coming days and apply my knowledge to build interactive web applications. Stay tuned for more updates on my progress in mastering JavaScript!&lt;/p&gt;

&lt;p&gt;Happy coding! 🚀&lt;/p&gt;

&lt;p&gt;Dev Pattani&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
    <item>
      <title>My 100-Day JavaScript Learning Challenge Journey Begins Today!</title>
      <dc:creator>Dev Pattani</dc:creator>
      <pubDate>Sun, 07 Apr 2024 06:28:43 +0000</pubDate>
      <link>https://dev.to/devpattani/my-100-day-javascript-learning-challenge-journey-begins-today-2kb8</link>
      <guid>https://dev.to/devpattani/my-100-day-javascript-learning-challenge-journey-begins-today-2kb8</guid>
      <description>&lt;p&gt;Hey everyone,&lt;/p&gt;

&lt;p&gt;I am thrilled to share that today marks the beginning of my &lt;strong&gt;100-day JavaScript learning challenge!&lt;/strong&gt; As someone from a non-tech background, I am embarking on this journey to explore the world of JavaScript and enhance my skills over the next 100 days.&lt;/p&gt;

&lt;p&gt;In this blog series, I will be documenting my experiences as I delve into JavaScript, following the user-friendly &lt;strong&gt;MDN JavaScript documentation&lt;/strong&gt;, the engaging &lt;strong&gt;"Chai aur Code"&lt;/strong&gt; JavaScript playlist on YouTube, and leveraging the assistance of ChatGPT for additional support and guidance.&lt;/p&gt;

&lt;p&gt;These resources have been recommended to me as a beginner, and I am excited to see how they will help me grasp the fundamentals of JavaScript. ChatGPT will provide me with valuable insights and explanations to complement my learning journey.&lt;/p&gt;

&lt;p&gt;While I may not have a technical background, I am eager to learn and grow through this challenge. JavaScript is known for its versatility and importance in &lt;strong&gt;web development&lt;/strong&gt;, and I am keen to understand its concepts and applications.&lt;/p&gt;

&lt;p&gt;I invite you to join me on this journey as I navigate through the world of JavaScript with the help of ChatGPT. Your support, insights, and tips are greatly appreciated as I take on this exciting adventure.&lt;/p&gt;

&lt;p&gt;Stay tuned for updates on my progress, reflections, and newfound knowledge as I tackle this 100-day challenge. Let's make the most of the next 100 days and code together!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Happy coding! 🚀&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Dev Pattani&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>beginners</category>
      <category>programming</category>
    </item>
  </channel>
</rss>
