Skip to main content


Interview Questions of JavaScript

Introduction:  JavaScript is a very popular and powerful client-side scripting language, which are used by every developer. Initially, the motto to implement it was to make dynamic pages and web components but now the day is used in a wide area of software development on the client-side and on the server-side where the JavaScript Engine is available. Some of the few frequently asked questions come from an interview 1. What is a higher-order function in JavaScript? In JavaScript, the higher-order function is a kind of function that can accept another function as an argument or returns a function as a return value or both, just like the delegates in .net. const varfirstOrderFunction = () => console. log ('HI!! this is first order'); const varHigherOrderFunction = ReturnFirstOrderFunction => ReturnFirstOrderFunction(); varHigherOrderFunction( varfirstOrderFunction ); 2. What is Immediately Invoked Function Expression( IIFE) in JavaScript? It is a JavaScript function Immediat

Add dynamic control on property panel conditionally in SharePoint SPFx

How we can add text, select and checkbox fields dynamically to provide a rich and meaningful full user experience in the SPFx framework? Solution provided: The answer is yes, it is possible to add, show, hide inputs fields conditionally based on the user requirement in the SPFx framework property panel in the SharePoint modern side to realize how modern it is and w hich can be used only on demand. To achieve that kind of feature we just need to use some logic on our solution, so, don't be worried I am going to tell you all here about the new project. Step-1 Open the PowerShell or Visual Studio Code and run the command to create the new solution yo @microsoft /sharepoint     then select the solution name and WebPart name, in my case I created DynamicControl as the solution name. Once it is completed need to run gulp build after the successful build up the solution you only need to follow the below steps to achieve it on your solution To achieve this you need to write some logic in y

How to set Apply button and make the component full width in SharePoint SPFx

Introduction: SharePoint SPFx framework is filled with very rich UI and flexibility to apply dynamic content and responsive User Interface the only thing is we need to enable it, there is lots of option which we can manually configure one of the examples of Apply button. It is a good practice and an example of rich UI by adding an Apply button in the SPFx property pane. this button has a predefined mechanism that can post the changes made at the property pane asynchronously, so that, you do not need to refresh the page to see your changes.  I t is as simple as you are. you only need to add some lines of code in your component. The below image shows the real-time example of an Apply button with the property pane screen. To achieve it, only need to follow some steps, in this blog I am going to tell you, everything from the beginning. Step-1:  First, of all need to create and the SPFx solution by running the below commands, using PowerShell or Visual Studio Code yo @microsoft /sharepoint

Interview Questions of SPFx SharePoint

What is SPFx? The SharePoint Framework (SPFx) is a web part model that provides full support for client-side SharePoint development, it is easy to integrate with SharePoint data, and extend Microsoft Teams. With the SharePoint Framework, you can use modern web technologies and tools in your preferred development environment to build productive experiences and apps that are responsive and mobile-ready. 1.  How to add SPFx web part to full-width column Answer:  You need to set  "supportsFullBleed": true, on the component.menifest.JSON 2. What is a gulp?  the term Gulp is an open-source JavaScript toolkit created by Eric Schoffstall used as a front-end web development streaming build system. Work with Node.js and npm, used for automation of time-consuming and repetitive tasks. Uses in web development like minification, concatenation, cache busting, unit testing, linting, optimization, etc 3. What is package.json in the SPFx? the term package.json file is an application’s directo

Non-Generic Collection and Generic Collection in.NET

What is Collection in.NET Microsoft .NET provides lots of collection data types that can store a set of records or values. there are two types of collections introduced by Microsoft in C#.NET, those are generic collections and non-generic collections. Generic collections are type-safe at compile time. so that it provides much better performance as compared to the non-generic collection. It supports a type parameter when they are constructed and do not require to do boxing-unboxing or type-conversation from the Object type when you add or remove items from the collection. Non-generic collections store items as Objects require casting, and most are not supported for Windows Store app development. However, you may see non-generic collections in older codes. by most developers, it is recommended to use the generic collection, because it is faster and safer also, there is less chance of exception and compile-time error with it. to use a non-generic collection in your code need to use the na