I’m a Front-End Engineer 馃槉.
- Who shares programming goodness
- with the community 馃挅
I’m a Front-End Engineer 馃槉.
Hello coders 馃憢, This is going to be our 9th question of the front-end interview questions series you can access all the questions by clicking here Higher Order Function A function that returns a function or takes other functions as arguments is called a higher-order function. 鈥擬DN Let鈥檚 write two functions findEven and findOdd to filter even and odd numbers. We will refactor them latter. const numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]; function findEven(nums) { const results = []; for (let i = 0; i < nums....
Hello coders 馃憢, This is going to be our 8th question of the front-end interview questions series you can access all the questions by clicking here IIFE (Immediately Invoked Function Expression) IIFE (Immediately invoked Fuction Expression) is a fuction that calls (invokes) as soon as it is defined. you don鈥檛 have to call the function explicitly. You have to wrap the function inside parentheses and add another parentheses at the end (....
Hello coders, This is going to be our 7th question of the front-end interview questions series you can access all the questions by clicking here Before proceeding further we should have a idea about primitive and non-primitive data types if you are not clear about them click here before moving further. Everything in Javascript is pass-by-value except objects, when we pass objects, the value passed is actually the reference address of it....
Hello readers, We have covered five questions from my front-end interview questions series until now, and today we are going to discuss the 6th question of the series. What is NaN NaN stands for Not-a-Number, In JavaScript it represents a value that is not valid number. It is a global value meaning it is accessible from anywhere in our code. How NaN is created? Let鈥檚 see some examples that returns NaN....
This is the 5th question of the front-end interview questions series. Dynamically-typed languages are those (like JavaScript) where the interpreter assigns variables a type at runtime based on the variable鈥檚 value at the time. 鈥擬DN JavaScript is a dynamically-typed language, Meaning data types of variables are determined by the value they hold at runtime and can change throughout the program as we assign different values to them....
We have covered the three most common front-end interview questions untile now 馃槉, and this is going to be the 4th question of the series. What Are the Different Data Types Present in Javascript? What is Hoisting in JavaScript? Difference Between == and === Operators in JavaScript Let鈥檚 discuss the fourth one without any further ado 馃憞 Introduction In javascript we can use var, let, and const to create variables and var is an old method to declare a variable in JavaScript....
This question is the 3rd question of the front-end interview questions series. And It is an important question and often come up in front-end interviews. Let鈥檚 discuss this 馃憞 Introduction In JavaScript, there are two methods for comparing data or data types: the == operator, known as loose equality, and the === operator, referred to as strict equality. Both operators evaluate the provided data and return a true or false value based on whether the data is same....
This is going to be the second quesion of the front-end interview quesion series. If you want to check the first one click here . Hoisting Hoisting is a very important concept of JavaScript which can introduce bug or cause unexpected behavior in your code if you鈥檙e not aware of how it works. JavaScript Hoisting refers to the process whereby the interpreter appears to move the declaration of functions, variables, classes, or imports to the top of their scope, prior to execution of the code....
I was thinking to create a series of the most common Front-end interview questions and finally I have made a list of the questions and this is going to be the first question of that list. Let鈥檚 discuss the question without further ado! According to the latest ECMAScript standard there are 8 types of different data types. Out of which seven data types are Primitive and one is Non-Primitive (also known as reference type)....
There are several ways to generate unique IDs in JavaScript. One commonly used method utilizes the crypto API, a native feature that provides cryptographic functionality for secure operations like hashing, encryption, and decryption. We鈥檒l explore the randomUUID method from the Crypto API to generate unique IDs. Example const uniqueId = crypto.randomUUID(); // (This will return a unique value on every call) Output 487a3de3-4243-45e1-91d1-1eb5aaba5405 Let鈥檚 apply this method to create a list of students, each with a unique ID....