Interview Questions and Answers - Order By Rating Q31. What is the difference between method and function in Typescript ? TypeScript
Ans. Method belongs to a class whereas function isn't. So the only difference is the scope in which they are defined. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  method vs function in typescript Q32. Explain interfaces in Typescript. How is it different compared to other languages ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  interfaces in typescript Q33. How Object-Oriented Programming is implemented in JavaScript? How they differ from other languages? Javascript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  object oriented programming in javascript  oops in javascript Q34. What is arrow function in Typescript ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  arraow functions in typescript   lambda expression vs arrow function Q35. Can we do type casting in Typescript ? TypeScript
Ans. Yes Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  type casting in typescript Q36. What is the type of variable if we don't set any type ? TypeScript
Ans. Any Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  any type in typescript Q37. How is the declaration of enum in Typescript differ from Javascript ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  enum typescript  enum javascript Q38. What are benefits of strongly typing variables ? JavaScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  strong typing javascript Q39. Difference between Let and Var in Javascript ? JavaScript
Ans. Var scopes the variable to the nearest function whereas Let scopes the variable to nearest block.
For example -
function printNumbers() {
for(var i = 1; i < 3: i++){
console.log(i);
}
console.log(i); // works fine and will print 3 as i has a function scope and not local loop scope
} Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  let vs var in javascript  let vs var   difference between let and var Q40. prototypal inheritance in Javascript JavaScript
This question was recently asked at 'RocketMiles'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q41. Have you had to work with memory leak problems in javascript ? JavaScript
This question was recently asked at 'RockYou'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q42. Write a method to track every click on a page. JavaScript
This question was recently asked at 'LinkedIn'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q43. What is the difference between inheritance in PHP vs. Javascript? JavaScript
This question was recently asked at 'WePay'.This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  php  javascript Asked in 1 Companies This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q45. What are the ways we can get over XSS or cross site scripting vulnerability ? Security
Ans. The counter measures of XSS are input validation and implementing a CSP (Content Security Policy). Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Cross Site Scripting  XSS Asked in 1 Companies This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q47. What does 'variable hoisting' mean? JavaScript
Ans. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q48. What is the use of this keyword in javascript ? Javascript
Ans. This keyword refers to the current instance of the class. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Asked in 1 Companies Q49. Can we compile multiple type script files together ? How ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q51. What are the features of TypeScript ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q52. What is type script ? What are the advantages of typescript ? How is it different than javascript ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Typescript vs Javascript Q53. What is the use of map method in typescript ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q54. Can we set specific return type of a method in typescript ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q55. Why type has been deprecated and replaced by interfaces ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q56. Difference between interface and class in typescript ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q57. Difference between interface and type ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve   Q58. What are the different data types in typescript ? TypeScript
This question is still unanswered. Can you please provide an answer. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Ans. Let creates a variable with a local scope whereas var creates it with a global scope. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  Ans. == compares values === is used in scripting languages for comparing two values as well as there data tpe. like in js,php. Help us improve. Please let us know the company, where you were asked this question : Like Discuss Correct / Improve  ==  ===  == vs === Asked in 13 Companies basic   frequent