Topics
  • Most Recent Stories
  • Trending Stories
  • Miscellaneous
  • JavaScript
  • PHP
  • Python
  • MySql
  • React Js
  • jQuery
  • Ubuntu
  • Server
  • Django
  • WordPress
  • Angular
  • CS CART
  • Woocommerce
  • Programming
  • Selenium
  • Node Js
  • Memory
  • Encryption and Decryption
  • Cryptography

Questions and Answers

Answer written - JavaScript
author
,
Aspirant Programmer
When we talk about looping through objects, before ES6 we had only one option to loop through objects using for...in. But it has some drawback as it iterates through properties in the prototype chain and to check if property belongs to the object you can do this with hasOwnProperty.    for (var property in object) {   if (object.hasOwnProperty(property)) {     // Rest code   } }   Bet... (more)
Answer written - Server
author
,
Aspirant Programmer
.htaccess is a configuration file for the Apache web server. It’s an extremely powerful tool that can be used to modify the Apache configuration without editing the Apache configuration files directly. Let us see how to create this configuration and use it to restrict directory listings and IP addresses, and to handle redirects.   Enable .htaccess file:   sudo nano /etc/apache2/sites-avai... (more)
Answer written - Angular
author
,
Aspirant Programmer
If you have a list of records and now you want a edit screen to edit and update the record then you can do it using following steps: 1- Import forms module in component import { FormGroup, FormBuilder, Validators, FormArray } from '@angular/forms'; 2- Then declare variables of form builder and form group public testform: FormGroup;   constructor(     public share: S... (more)
Answer written - JavaScript
author
,
Aspirant Programmer
Here you can get a very useful javascript concepts where most of the people get confused or not aware of it. The below list will solve it:   What is NaN? NaN represents a special Not-a-Number value. It is a result of an invalid or an undefined mathematical operation,  like taking the square root of -1 or dividing 0 by 0, etc. We can check it using Number.isNa... (more)
Answer written - PHP
author
,
Aspirant Programmer
If you want some data to be passed to a view each time when it is rendered. It helps to avoid writing code in controller 's methods repeatedly.   We can define it as below: View composers are callbacks or class methods that are called when a view is rendered. If you have data that you want to be bound to a view each time that view is rendered, a view composer can help you organize that log... (more)
Answer written - JavaScript
author
,
Aspirant Programmer
A list of important questions and answers which are frequently asked in interviews.   1) What is ES6 or ECMAScript 2015? It was released in June 2015, which is also known as the sixth edition of the language. Earlier, it was named ES6 and later renamed to ECMAScript 2015. There are several new features are introduced like modules, iterators, class, arrow functions, for...of loop, promises, an... (more)
Answer written - Angular
author
,
Aspirant Programmer
Operators are methods that you can use on Observables/Subjects that allow you to change the original observable and return a new observable. Operators do not change the existing Observable, they simply modify it and return a new observable. Operators are known as pure functions, which are functions that do not modify the variables outside of its scope. Operatoes are of two types: Static Ope... (more)
Answer written - React Js
author
,
Aspirant Programmer
We have a list of interview questions in this section and would like to explain it thoroughly. We will keep adding multiple questions and answers into this later also.   What are the key features of React? The key features of Reactjs are:     1- It uses VirtualDOM instead of RealDOM considering that RealDOM manipulations are expensive.     2- It supports server side (SSR) rendering.    ... (more)
Answer written - Miscellaneous
author
,
Aspirant Programmer
Here I will show you how you can create a multi select checkbox with search feature using jQuery and bootstrap library and it is a very easy to integrate anywhere in web application. You just need to include bootstrap multi select library and few lines of configurable javascript code in your webpage. You will get that element integrated with many other features as well based on your requirement. F... (more)
Answer written - PHP
author
,
Aspirant Programmer
To establish Many to Many relation, laravel has given a way by creating an intermediary table that is called pivot table. It is a very simple table containing two foreign keys of related tables (Models). We can understand this relation easily with an example as stated below.   We have two entities Category and Post. A category may belongs to many posts and a post may belongs to many categories... (more)