Aftab Farooq -Software Engineer

Aftab Farooq -Software Engineer MERN Stack Web Developer💻 Your satisfaction is my top priority✅ Let’s talk & build something great!

Honoring the bravery and sacrifices of our heroes on Defence Day. Proud of our defenders who protect our freedom.
06/09/2024

Honoring the bravery and sacrifices of our heroes on Defence Day. Proud of our defenders who protect our freedom.

🌙 Rabi ul Awal Chand Mubarak 🌙✨ Meetha Meetha Hai Mere Muhammad Ka Naam ✨This blessed month brings light and joy as we c...
05/09/2024

🌙 Rabi ul Awal Chand Mubarak 🌙

✨ Meetha Meetha Hai Mere Muhammad Ka Naam ✨

This blessed month brings light and joy as we celebrate the birth of our beloved Prophet Muhammad (PBUH). May this Rabi ul Awal fill our hearts with peace and love for the Holy Prophet. 🌹

Quote of the Day
17/05/2024

Quote of the Day

Ramadan Mubarak 🌙The Month of Blessing 😇
11/03/2024

Ramadan Mubarak 🌙
The Month of Blessing 😇

🚀 Excited to share this comprehensive list of ‘Free Useful AI Tools’ that are revolutionizing the way we work and create...
23/02/2024

🚀 Excited to share this comprehensive list of ‘Free Useful AI Tools’ that are revolutionizing the way we work and create! 🛠️

From chatbots like ChatGPT, Bard, and Bing, to design tools like Adobe Firefly and Microsoft Designer, these AI-powered platforms are enhancing our productivity and creativity. 🎨

In the realm of video editing, tools like Capcut and Descript are making content creation more accessible. And for coding, platforms like Codeium, AskCodi, and CodeWhisper are simplifying the process. 💻

Whether you’re looking to optimize your presentations with Tome and Decktopus, or streamline your meetings with Loopin and Krisp, there’s an AI tool for you. 📊

Let’s embrace these innovations and continue to push the boundaries of what’s possible with AI!

In  ,     are used to organize and store data in a way that allows efficient access and modification. Here are some of t...
13/02/2024

In , are used to organize and store data in a way that allows efficient access and modification. Here are some of the common data structures in JavaScript:

: These are built-in data structures that come by default with the programming language.

: Represents numeric values.

: Represents a sequence of characters.

: Represents either true or false.

: Represents a variable that has not been assigned a value.

: Represents the intentional absence of any object value.

: Represents a unique identifier.

- : These do not come by default and you have to code them up if you want to use them.

: A collection of items stored at contiguous memory locations. Each item can be accessed through its index (position) number.

(Hash Tables): Objects in JavaScript are collections of key/value pairs. The keys in this key/value pair are called properties of the object.

and : These are more advanced data structures that can be implemented using arrays or linked lists.

: A linked list is a linear data structure where each element is a separate object. Each element (node) of a list consists of two items - the data and a reference to the next node.

and : These are non-linear data structures with a hierarchical relationship between elements.

In  ,   and await are special syntax used to work with promises in a more comfortable fashion.The async keyword can be p...
12/02/2024

In , and await are special syntax used to work with promises in a more comfortable fashion.

The async keyword can be placed before a function. This means that the function will always return a promise. If the return value of an async function is not explicitly a promise, it will be implicitly wrapped in a promise.

Here’s a basic example of an async function:

async function f() {

return 1;

}

The keyword makes JavaScript wait until the promise settles and returns its result1. It can only be used inside an async function. If you use it outside of an async function’s body, you will get a .

Here’s an example with a promise that resolves in 1 second:

async function f() {

let promise = new Promise((resolve, reject) => {

setTimeout(() => resolve("done!"), 1000)

});

let result = await promise; // wait until the promise resolves

alert(result); // "done!"

}

f();

In this example, the function ex*****on “pauses” at the line with await and resumes when the promise settles, with result becoming its result.

In  , a   is an object that represents the eventual completion (or failure) of an asynchronous operation and its resulti...
11/02/2024

In , a is an object that represents the eventual completion (or failure) of an asynchronous operation and its resulting value.

A is in one of these states:

: initial state, neither fulfilled nor rejected.

: meaning that the operation was completed successfully.

: meaning that the operation failed.

Here’s a basic of a Promise:

let myPromise = new Promise(function(myResolve, myReject) {

// "Producing Code" (May take some time)

myResolve(); // when successful

myReject(); // when error

});

// "Consuming Code" (Must wait for a fulfilled Promise)

myPromise.then(

function(value) { /* code if successful */ },

function(error) { /* code if some error */ }

);

In this example, myResolve and myReject are functions that get called when the Promise is resolved (i.e., the asynchronous operation is completed). The then method is used to specify what should happen when the Promise is resolved or rejected.

Promises can be chained together using the then method, which allows for complex asynchronous workflows to be handled in a clean, readable way.

  (Array): A collection is a way to group multiple items. An array is a simple collection in JavaScript. :let fruits = [...
10/02/2024

(Array): A collection is a way to group multiple items. An array is a simple collection in JavaScript.

:

let fruits = ["apple", "banana", "mango"];

console.log(fruits[0]); // Outputs: apple

: These are special functions that can pause and resume their ex*****on, allowing for the creation of custom iterators.

:

function* idGenerator() {

let id = 0;

while (true) {

yield id++;

}

}

const gen = idGenerator();

console.log(gen.next().value); // Outputs: 0

console.log(gen.next().value); // Outputs: 1

In the generator example, idGenerator is a generator function that yields a sequence of IDs. We can pause and resume the sequence with the next() method.

  in   is a process in which a function calls itself as a subroutine. This allows the function to be repeated several ti...
09/02/2024

in is a process in which a function calls itself as a subroutine. This allows the function to be repeated several times, as it can call itself during its ex*****on.

Here’s a simple example:

function factorial(n) {

if (n === 0) {

return 1;

} else {

return n * factorial(n - 1);

}

}

console.log(factorial(5)); // Output: 120

In this example, is a that calculates the factorial of a number. It calls itself with a smaller argument until it reaches the base case (n === 0). Recursion can be powerful, but it’s also important to handle base cases properly to avoid infinite recursion.

On this crucial  , honesty and clarity must remain at the forefront of the electoral process. Let us work together to us...
08/02/2024

On this crucial , honesty and clarity must remain at the forefront of the electoral process. Let us work together to usher in a new era of transparent governance for . Our collective prayer is for the nation's thriving future, guided by judicious leadership and unity. May prosperity and peace be our shared destiny.

It is never too late to repent and seeking forgiveness from Allah. May Allah forgive our sins and May Allah cleanse our ...
07/02/2024

It is never too late to repent and seeking forgiveness from Allah. May Allah forgive our sins and May Allah cleanse our hearts.

Shab-e-Miraj Mubarak 🌙

Address

Center Point Plaza, Kohinoor
Faisalabad
38090

Alerts

Be the first to know and let us send you an email when Aftab Farooq -Software Engineer posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Share