Skip to main content

Posts

Showing posts from June, 2019

Top 50 Javascript Interview Question | Javascript Interview question in 2024

 If you are preparing for NODE JS, REACT JS, JAVA, ANGULAR, PYTHON or .NET Developer profile then this question set is mandatory to you. Here are top 40 Javascript questions that are frequently asked in Frontend interviews - 𝟭-𝟭5: 𝗕𝗮𝘀𝗶𝗰𝘀 𝗼𝗳 𝗝𝗮𝘃𝗮𝗦𝗰𝗿𝗶𝗽𝘁 1. What is JavaScript? 2. Explain the difference between let, const, and var. 3. How does hoisting work in JavaScript? 4. Describe the concept of closures. 5. Explain the event loop in JavaScript. 6. What is the difference between == and ===? 7. How do you check the type of a variable in JavaScript? 8. What is the use of the this keyword in JavaScript? 9. Explain the difference between function declaration and function expression. 10. How does the setTimeout function work? 11. what is collection and explain type of collection 12. what is undefine type in javascript? 13.  How to implement data abstraction & data encapsulation in Javascript? 14. What is Inheritance in javascript, explain type of inheritance?...

JavaScript OOP Tutorial | Javascript OOPS tutorial | Complete OOPS tutorial of Javascript

 JavaScript OOP Tutorial Overview JavaScript supports Object-Oriented Programming (OOP) principles through its prototype-based architecture. This tutorial will cover key concepts such as classes, objects, data abstraction, data encapsulation, polymorphism, and inheritance, providing step-by-step examples for each. Four Pillars of Object-Oriented Programming OOP languages adhere to four primary principles: Encapsulation : Combining data and methods within objects to ensure data security. Inheritance : Allowing classes to inherit properties and methods from parent classes, promoting code reuse and enabling method overriding. Polymorphism : Using the same function in different forms to reduce repetition and enhance code utility. Abstraction : Hiding complex implementation details to simplify usage. Is JavaScript Object-Oriented? To determine if JavaScript is object-oriented, we need to understand the difference between OOP and prototype-based programming. Object-Oriented Programming (...

Create Lift program in Javascript, How to create real-time lift in JS

 Create Lift program in Javascript, How to create real-time lift in JS: Write a Program to create lift program where no of floor and total lift movement entered by the user's. function sleep ( ms ) {     return new Promise ( resolve => setTimeout ( resolve , ms ));   }     async function delayedGreetingsLoop () {     let n = 1 ; //take from users also     while ( n <= 10 ) {         if ( n <= 5 )             {                 console . log ( `floor # ${ n } ` );             }             else             {                 console . log ( `floor # ${ 11 - n } ` );             }       await sleep ( 1000 );       n ++;         ...

Pattern based program in Javascript under node JS

 Pattern based program in Javascript under node JS, Create this pattern 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 ........................................................................................... for ( let i = 1 ; i <= 5 ; i ++)   {     for ( let j = 1 ; j <= i ; j ++)    {         process . stdout . write ( j + " " );            }     process . stdout . write ( " \n " ); } ................................................................ Create this pattern 1 2 3 4 5 1 2 3 4 1 2 3 1 2 1 for ( let i = 1 ; i <= 5 ; i ++)   {     for ( let j = 1 ; j <= 6 - i ; j ++)    {         process . stdout . write ( j + " " );            }     process . stdout . write ( " \n " ); }

Front-end Interview Question and Answer , Web developer interview question and Answer

 Front-end Interview Question and Answer , Web developer interview question and Answer: Q: How to explain yourself during an interview?  Short Syntax and Answers  A: Describe your background, skills, experiences, and why you are suitable for the job. Highlight key achievements and  how they relate to the position.  Q: What is HTML?  A: HTML (HyperText Markup Language) is the standard language for creating web pages and web applications.  Q: What is DOCTYPE?  A: DOCTYPE is an instruction to the web browser about the version of HTML the page is written in.  Q: HTML 4 and HTML5 differences?  A: HTML5 includes new elements (e.g., <article>, <section>), audio and video support, and improved form controls  compared to HTML4.  Q: div and span difference?  A: <div> is a block-level element, while <span> is an inline element.  Q: Semantic tags in HTML5?  A: Examples include <article>, <sec...