<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Javascript on Ghafoor's Personal Blog</title><link>http://ghafoorsblog.com/tags/javascript/</link><description>Recent content in Javascript on Ghafoor's Personal Blog</description><generator>Hugo</generator><language>en</language><managingEditor>noreply@example.com (AG Sayyed)</managingEditor><webMaster>noreply@example.com (AG Sayyed)</webMaster><copyright>Copyright © 2024-2026 AG Sayyed. All Rights Reserved.</copyright><lastBuildDate>Mon, 18 May 2026 04:43:48 +0100</lastBuildDate><atom:link href="http://ghafoorsblog.com/tags/javascript/index.xml" rel="self" type="application/rss+xml"/><item><title>ESLint Setup and Configuration Guide</title><link>http://ghafoorsblog.com/courses/ags/vscode-content/vscode-linting-and-formatting/01-markdown/02-module/005-eslint/</link><pubDate>Sat, 20 Sep 2025 14:57:58 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/courses/ags/vscode-content/vscode-linting-and-formatting/01-markdown/02-module/005-eslint/</guid><description>&lt;p class="lead text-primary"&gt;
Master ESLint from the ground up! This comprehensive guide covers everything from basic installation to advanced configuration setups. Learn how to enforce coding standards, extend popular style guides like Airbnb and Google, configure rules for different project types, and integrate ESLint seamlessly into your VS Code workflow for consistent, high-quality JavaScript development.
&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="-what-is-eslint"&gt;🎯 What is ESLint&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;ESLint&lt;/strong&gt; is a static code analysis tool for identifying and fixing problems in JavaScript code. It helps developers:&lt;/p&gt;</description></item><item><title>Frontend Frameworks and React</title><link>http://ghafoorsblog.com/courses/ibm/fullstack-content/fullstack-pcert/05-frontend-react/01-module/001-frontend-framework/</link><pubDate>Sat, 26 Jul 2025 00:00:00 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/courses/ibm/fullstack-content/fullstack-pcert/05-frontend-react/01-module/001-frontend-framework/</guid><description>&lt;p class="lead text-primary"&gt;
This document explores the essentials of front-end frameworks, focusing on the distinction between libraries and frameworks, and provides a comprehensive overview of React. Readers will learn about React's component-based architecture, declarative syntax, virtual DOM, one-way data binding, JSX, and hooks, all of which enable efficient and scalable web application development.
&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="introduction-to-libraries-and-frameworks"&gt;Introduction to Libraries and Frameworks&lt;/h2&gt;
&lt;p&gt;Libraries and frameworks are foundational tools in software development. A library is a collection of prewritten code that provides reusable functions for specific tasks, allowing developers to integrate them as needed. Examples include jQuery, Lodash, D3.js, and React.&lt;/p&gt;</description></item><item><title>Jsx</title><link>http://ghafoorsblog.com/courses/ibm/fullstack-content/fullstack-pcert/05-frontend-react/01-module/004-jsx/</link><pubDate>Sat, 26 Jul 2025 00:00:00 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/courses/ibm/fullstack-content/fullstack-pcert/05-frontend-react/01-module/004-jsx/</guid><description>&lt;p class="lead text-primary"&gt;
JSX (JavaScript Syntax Extension) blends HTML-like markup with JavaScript, enabling developers to describe user interfaces in a clear, declarative way. This document covers JSX's syntax, compilation, benefits, and its role in React, with practical examples and comparisons to vanilla JavaScript for building UI components.
&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="introduction-to-jsx"&gt;Introduction to JSX&lt;/h2&gt;
&lt;p&gt;JSX, or JavaScript Syntax Extension, is a syntax that combines JavaScript with HTML-like markup. It is also known as JavaScript XML. JSX allows developers to describe how user interface elements should appear on the screen using a familiar, readable format. Elements in JSX are enclosed in angle brackets, closely resembling HTML, but can also include JavaScript expressions.&lt;/p&gt;</description></item><item><title>JavaScript Basics</title><link>http://ghafoorsblog.com/posts/js/javascript-basics/</link><pubDate>Mon, 15 Jan 2024 00:00:00 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/posts/js/javascript-basics/</guid><description>&lt;p&gt;Learn the fundamentals of JavaScript programming.&lt;/p&gt;</description></item><item><title>What and why in JS</title><link>http://ghafoorsblog.com/posts/js/09-what-and-why/</link><pubDate>Wed, 03 May 2017 23:00:00 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/posts/js/09-what-and-why/</guid><description>&lt;h2 id="10-since-js-has-no-interfaces-how-it-is-implemented"&gt;1.0 Since JS has no interfaces how it is implemented&lt;/h2&gt;
&lt;p&gt;To understand what interface do and what is required one needs to have some object oriented programming knowledge. It is similar to class but can not be instantiated. It only exposed methods that interested object or class can implement the way they want. When a class implements an interface it is said to inherits the abstract functions, along with any other members defined in interface. e.g, any constant , methods , static methods and any nested types. NOte&amp;gt; Abstract methods do not have any code that are only blue prints for those who inherit them so provide the body by writing the code.&lt;/p&gt;</description></item><item><title>JavaScript Modules</title><link>http://ghafoorsblog.com/posts/js/08-modules/</link><pubDate>Tue, 11 Apr 2017 23:00:00 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/posts/js/08-modules/</guid><description>&lt;h2 id="10-what-are-modules"&gt;1.0 What are modules&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Modules play a crucial role in organizing and structuring code within an application. They allow developers to break down large codebases into smaller, manageable pieces. In this article, we&amp;rsquo;ll delve into the concept of modules, their evolution, and how JavaScript and TypeScript handle them.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;It is a technique which keep the code organizes in any programme. Java Script default way of creating object using literals is one of the ways of module pattern.&lt;/p&gt;</description></item><item><title>How to Understand Functional Programming</title><link>http://ghafoorsblog.com/posts/js/07-functional-programming/</link><pubDate>Fri, 31 Mar 2017 23:00:00 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/posts/js/07-functional-programming/</guid><description>&lt;h2 id="functional-programming"&gt;Functional programming&lt;/h2&gt;
&lt;p&gt;Early languages like C, BASIC were not functional languages. Then came OOP C++ was a super set of C with Object Oriented approach the came Java but none of them offered functional programming technique. The only functional programming from early days was and still is LISP and its descendant like PROLOG. When Brenden Eich was hired by Netscape to write a language that can be embedded in their web browser. He came up with JavaScript, which was not an object oriented language but object based prototype language. But it was not all, there were some features of functional programming. As JavaScript evolved it turned out that functional programming technique can prove to be more powerful than its counterparts. To understand these techniques, one has to have at least some concept of what a function is and how it works. The term function has come from Mathematics.&lt;/p&gt;</description></item><item><title>JavaScript Objects</title><link>http://ghafoorsblog.com/posts/js/06-objects/</link><pubDate>Wed, 22 Feb 2017 00:00:00 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/posts/js/06-objects/</guid><description>&lt;h2 id="10-object-oriented-programming"&gt;1.0 Object Oriented Programming&lt;/h2&gt;
&lt;p&gt;JavaScript was not at all intended to be an Object Oriented Programming Language. At the time of its creation there were already other languages present which were doing this task, namely C++ was the modified version of C with Classes and other object oriented features. Another language which took the grounds was Java which was basically designed to serve the concept revolving around Object Oriented Programming and to overcome the shortcomings present in C++.&lt;/p&gt;</description></item><item><title>Introduction to Functions</title><link>http://ghafoorsblog.com/posts/js/05-functions/</link><pubDate>Thu, 05 Jan 2017 00:00:00 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/posts/js/05-functions/</guid><description>&lt;h4 id="objectives"&gt;Objectives&lt;/h4&gt;
&lt;p&gt;At the end of this chapter you will learn to :&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Define all different kinds of functions&lt;/li&gt;
&lt;li&gt;Distinguish between an statement and the expression&lt;/li&gt;
&lt;li&gt;Handle functions from JS perspective&lt;/li&gt;
&lt;li&gt;Invoke functions directly and indirectly&lt;/li&gt;
&lt;li&gt;Understand how functions inherits properties too&lt;/li&gt;
&lt;li&gt;Appreciate functions role in object creation&lt;/li&gt;
&lt;li&gt;Explore the power of functional programming&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="introduction-to-javascript-functions"&gt;Introduction to JavaScript Functions&lt;/h3&gt;
&lt;p&gt;They are main building blocks of JavaScript, usually assigned a name so that they can be used time and time again by identifying with the given name.They are self-contained modular units.The structure of the function is shown below.&lt;/p&gt;</description></item><item><title>JavaScript Conditionals</title><link>http://ghafoorsblog.com/posts/js/04-conditionals/</link><pubDate>Sat, 10 Dec 2016 00:00:00 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/posts/js/04-conditionals/</guid><description>&lt;h2 id="what-are-conditions"&gt;What are conditions&lt;/h2&gt;
&lt;p&gt;Programming is all about using logic of &lt;code&gt;if and then&lt;/code&gt;. No matter what computer language you are using the rules always revolves around if and then. If this happens do that otherwise do something else, and so on&lt;/p&gt;
&lt;p&gt;JavaScript is not different from other languages, in fact it is a c-based language and most of its syntax is like c language. But it is not a high level language like C. It has almost same procedure to check the conditions of any statement like the way it is done in c-language.&lt;/p&gt;</description></item><item><title>JavaScript Arrays</title><link>http://ghafoorsblog.com/posts/js/03-arrays/</link><pubDate>Sat, 26 Nov 2016 00:00:00 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/posts/js/03-arrays/</guid><description>&lt;h2 id="arrays"&gt;Arrays&lt;/h2&gt;
&lt;p&gt;Array is a topic of data structure and deals with collecting of data known as data collection. Data can be homogeneous or heterogeneous, arrays usually deal with homogeneous items. The item in an array or a component (element stored) in an array is accessed by its position using index. Thus there is one-to-one relationship between each index and its component. Take an example of student marks achieved in five subjects &lt;code&gt;var result = [70,69,83,93,73]&lt;/code&gt;. Marks are stored in an array which is referenced by the identifier &lt;code&gt;result.&lt;/code&gt; Thus the relationship b/w its index and value can be shown as below.&lt;/p&gt;</description></item><item><title>JavaScript Variables</title><link>http://ghafoorsblog.com/posts/js/02-variables/</link><pubDate>Tue, 08 Nov 2016 00:00:00 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/posts/js/02-variables/</guid><description>&lt;h2 id="introduction-to-variables"&gt;Introduction to variables&lt;/h2&gt;
&lt;p&gt;In computer programming, a variable represents a very small chunk of memory which is a part of memory pool reserved for a program in which it is declared to allow the manipulation of its value.&lt;/p&gt;
&lt;p&gt;For example, if you want to add two numbers, say 5 and 8 and would like to see the result displayed on your standard output. You would ideally need to have three variables so that you can hold their values into these variables. Let&amp;rsquo;s say &lt;code&gt;x,y and z&lt;/code&gt; are those variables which will hold the values of 5,8 and their sum respectively.&lt;/p&gt;</description></item><item><title>History of JavaScript</title><link>http://ghafoorsblog.com/posts/js/01-history/</link><pubDate>Sun, 17 Apr 2016 07:59:10 +0000</pubDate><author>noreply@example.com (AG Sayyed)</author><guid>http://ghafoorsblog.com/posts/js/01-history/</guid><description>&lt;p class="lead text-primary"&gt; This document provides a comprehensive overview of the history and development of JavaScript, from its inception in the early 1990s to its current state. It begins by describing the static nature of early web pages and the need for a programming solution to enhance interactivity. Netscape's introduction of LiveScript, later renamed JavaScript, marked a significant milestone in web development. The standardization of JavaScript as ECMAScript by ECMA is discussed, along with the major updates in various ECMAScript editions. Key features introduced in ECMAScript 6 (ES6) and subsequent editions are outlined, including `const`, `let`, arrow functions, classes, async/await, and more. Overall, the document emphasizes JavaScript's continuous evolution and its importance in modern web development, ensuring it remains a fundamental technology for years to come. &lt;/p&gt;</description></item></channel></rss>