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

Questions and Answers

Question Asked - Miscellaneous
author
,
Fond of IT

How can we differentiate between tree and graph data structure?

Answer written - Programming
author
,
Fond of IT

Data sctructure is how we store, organize and group the data so that it can be used efficiently. 

There are many ways of storing data in programming languages like linked list, queue, graph, tree, array etc.

Answer written - JavaScript
author
,
Fond of IT
Annotation is about specifyng type of the something like variable.  We can understand it better referring below example:   var a = 10; var b = "Hello"; var c = True;   Here javascript understand/infer the type of variable by the value being passed into it.   var a: number = 10; var b: String;   Here we have specified the type of th... (more)
Answer written - JavaScript
author
,
Fond of IT
Let us understand the requirement of using prototype first.  Suppose you have a person class and there are two properties inside it.  You have created multiple objects and now you want to add a new property into class and that should  be available in all created objects then you would require to use prototype. If you add the new property... (more)
Answer written - JavaScript
author
,
Fond of IT
You can remove duplicate items from array in javascript using below methods: 1-  Using filter function: var items = ["1", "2", "3", "1", "2", "4"]; var newArray = items.filter(function(item, index, items){       return items.indexOf(item) === index } );   2- Using core javascript logic: function removeDuplicateItems(arr) {      var tempArr = {};      for (var i ... (more)
Answer written - Miscellaneous
author
,
Fond of IT
It seems same but there is difference between parameter and argument.  Parameter is variable in the declaration of function. Argument is the actual value of this variable that gets passed to function. See an example: def test_function(abc):      return abc   // Calling the function test_function(100) Here 'abc' is parameter and '100' is argument.... (more)
Answer written - Python
author
,
Fond of IT
In python == checks equality of the value but "is" checks memory. You can refer to below example to understand it better: a = [1,2,3] b = [1,2,3] a == b returns true because all values are same in both the lists. a is b returns false because a and b are two different objects in memory. clone = b b is clone returns true because clone and b point to the same memory. I hope you understand n... (more)
Answer written - Angular Js
author
,
Fond of IT

If you face above issue while executing the ng serve  command, you can install the package as dev dependency. This is introduced in latest version of Angular 6.0.

 npm install --save-dev @angular-devkit/build-angular  

I faced the same issue and it resolved my problem and hope it will resolve your's too.

Answer written - Angular Js
author
,
Fond of IT
First of all I would like to introduce about Angularjs and Angular. First version of angularjs is called as Angularjs but later versions are called only Angular so this is the difference. To start with Angular, you must have node.js installed in your system that should be Node.js 10.9.0 or later version and you can get the latest version from nodejs.org You also need to have installed npm packag... (more)
Answer written - Miscellaneous
author
,
Fond of IT
If you are getting the above issue while setting up google / gmail SMTP server. You need to follow below steps it will surely solve your problem. I had also faced this issue and following the below steps resolved my problem and mail getting started to come in my inbox. 1- You need to enable 2 step verification in your google account setting  URL: https://www.google.com/landing/2step/ 2- Now cre... (more)