Which HTTP method is typically used to retrieve data from an API?
Anonymous Quiz
14%
a) POST
82%
b) GET
3%
c) PUT
1%
d) DELETE
❤3🔥1👏1
What does fetch() return in JavaScript?
Anonymous Quiz
25%
a) A callback
36%
b) A promise
11%
c) A function
28%
d) JSON object
❤4
Which status code means a successful API response?
Anonymous Quiz
67%
a) 200
18%
b) 404
10%
c) 500
5%
d) 301
❤2👏1
Top 10 Javascript Interview Questions With Answers 👇👇
1. What is JavaScript?
JavaScript is a high-level, interpreted programming language that is used to make web pages interactive and dynamic. It is commonly used for front-end development and can also be used for back-end development with the help of Node.js.
2. What are the data types in JavaScript?
JavaScript has six primitive data types: string, number, boolean, null, undefined, and symbol. It also has an object data type, which includes arrays and functions.
3. What is the difference between == and === in JavaScript?
The == operator compares the values of two variables, while the === operator compares both the values and the types of the variables. For example, 5 == "5" would return true, but 5 === "5" would return false.
4. What is a closure in JavaScript?
A closure is a function that has access to its own scope, the outer function's scope, and the global scope. It allows for encapsulation and private data in JavaScript.
5. What is the use of the 'this' keyword in JavaScript?
The 'this' keyword refers to the object that is currently executing the current function. Its value is determined by how a function is called.
6. What are callbacks in JavaScript?
A callback is a function that is passed as an argument to another function and is executed after a specific event or task has been completed. Callbacks are commonly used in asynchronous programming.
7. What are arrow functions in JavaScript?
Arrow functions are a more concise way to write function expressions in JavaScript. They have a shorter syntax and do not bind their own 'this' value.
8. What is event bubbling in JavaScript?
Event bubbling is a mechanism in which an event triggered on a child element will also trigger on its parent elements, propagating up the DOM tree.
9. What is the difference between let and var in JavaScript?
The let keyword was introduced in ES6 and is used to declare block-scoped variables, while var declares function-scoped variables. Variables declared with var are hoisted to the top of their function scope, while let variables are not.
10. How does prototypal inheritance work in JavaScript?
In JavaScript, objects can inherit properties and methods from other objects through prototype chaining. When a property or method is accessed on an object, JavaScript will look up the prototype chain to find it if it's not directly on the object itself.
You can check these resources for Coding interview Preparation
Credits: https://t.iss.one/free4unow_backup
All the best 👍👍
1. What is JavaScript?
JavaScript is a high-level, interpreted programming language that is used to make web pages interactive and dynamic. It is commonly used for front-end development and can also be used for back-end development with the help of Node.js.
2. What are the data types in JavaScript?
JavaScript has six primitive data types: string, number, boolean, null, undefined, and symbol. It also has an object data type, which includes arrays and functions.
3. What is the difference between == and === in JavaScript?
The == operator compares the values of two variables, while the === operator compares both the values and the types of the variables. For example, 5 == "5" would return true, but 5 === "5" would return false.
4. What is a closure in JavaScript?
A closure is a function that has access to its own scope, the outer function's scope, and the global scope. It allows for encapsulation and private data in JavaScript.
5. What is the use of the 'this' keyword in JavaScript?
The 'this' keyword refers to the object that is currently executing the current function. Its value is determined by how a function is called.
6. What are callbacks in JavaScript?
A callback is a function that is passed as an argument to another function and is executed after a specific event or task has been completed. Callbacks are commonly used in asynchronous programming.
7. What are arrow functions in JavaScript?
Arrow functions are a more concise way to write function expressions in JavaScript. They have a shorter syntax and do not bind their own 'this' value.
8. What is event bubbling in JavaScript?
Event bubbling is a mechanism in which an event triggered on a child element will also trigger on its parent elements, propagating up the DOM tree.
9. What is the difference between let and var in JavaScript?
The let keyword was introduced in ES6 and is used to declare block-scoped variables, while var declares function-scoped variables. Variables declared with var are hoisted to the top of their function scope, while let variables are not.
10. How does prototypal inheritance work in JavaScript?
In JavaScript, objects can inherit properties and methods from other objects through prototype chaining. When a property or method is accessed on an object, JavaScript will look up the prototype chain to find it if it's not directly on the object itself.
You can check these resources for Coding interview Preparation
Credits: https://t.iss.one/free4unow_backup
All the best 👍👍
❤9👍4
📊 𝗗𝗮𝘁𝗮 𝗔𝗻𝗮𝗹𝘆𝘁𝗶𝗰𝘀 𝗙𝗥𝗘𝗘 𝗗𝗲𝗺𝗼 𝗠𝗮𝘀𝘁𝗲𝗿𝗰𝗹𝗮𝘀𝘀 𝗶𝗻 𝗛𝘆𝗱𝗲𝗿𝗮𝗯𝗮𝗱/𝗣𝘂𝗻𝗲 😍
🔥 Learn Data Analytics with Real-time Projects ,Hands-on Tools
✨ Highlights:
✅ 100% Placement Support
✅ 500+ Hiring Partners
✅ Weekly Hiring Drives
𝗥𝗲𝗴𝗶𝘀𝘁𝗲𝗿 𝗡𝗼𝘄:- 👇
🔹 Hyderabad :- https://pdlink.in/4kFhjn3
🔹 Pune:- https://pdlink.in/45p4GrC
Hurry Up 🏃♂️! Limited seats are available.
🔥 Learn Data Analytics with Real-time Projects ,Hands-on Tools
✨ Highlights:
✅ 100% Placement Support
✅ 500+ Hiring Partners
✅ Weekly Hiring Drives
𝗥𝗲𝗴𝗶𝘀𝘁𝗲𝗿 𝗡𝗼𝘄:- 👇
🔹 Hyderabad :- https://pdlink.in/4kFhjn3
🔹 Pune:- https://pdlink.in/45p4GrC
Hurry Up 🏃♂️! Limited seats are available.
📚 Top 10 HTML Interview Questions With Answers
1. What is HTML?
HTML (HyperText Markup Language) is the standard language used to create and design web pages. It structures content by using elements and tags.
2. What are the different types of HTML tags?
There are block-level tags (like
3. What is the difference between HTML elements and tags?
A tag is the markup itself (e.g.,
4. What are semantic HTML elements?
Semantic elements clearly describe their meaning in a human- and machine-readable way. Examples include
5. What is the purpose of the
The
6. What are the different ways to include CSS in an HTML page?
CSS can be added via inline styles (
7. What is the difference between an ID and a Class in HTML?
ID is unique within a page and is used to identify a single element, while class can be assigned to multiple elements for styling or scripting.
8. How do you create a hyperlink in HTML?
Using the
9. What are HTML forms used for?
Forms collect user input and submit data to a server for processing, with tags like
10. What is the role of the
Meta tags provide metadata about the HTML document such as character set, page description, viewport settings, and SEO info.
Double Tap ♥️ For More
1. What is HTML?
HTML (HyperText Markup Language) is the standard language used to create and design web pages. It structures content by using elements and tags.
2. What are the different types of HTML tags?
There are block-level tags (like
<div>
, <p>
, <h1>
) which start on a new line, and inline tags (like <span>
, <a>
, <img>
) which do not start on a new line.3. What is the difference between HTML elements and tags?
A tag is the markup itself (e.g.,
<p>
), while an element includes the opening tag, content, and closing tag (<p>Content</p>
).4. What are semantic HTML elements?
Semantic elements clearly describe their meaning in a human- and machine-readable way. Examples include
<header>
, <footer>
, <article>
, and <section>
.5. What is the purpose of the
doctype
declaration in HTML? The
<!DOCTYPE html>
declaration defines the document type and version of HTML, helping browsers render the page correctly.6. What are the different ways to include CSS in an HTML page?
CSS can be added via inline styles (
style
attribute), internal styles (<style>
tag inside <head>
), or external style sheets linked via <link>
tag.7. What is the difference between an ID and a Class in HTML?
ID is unique within a page and is used to identify a single element, while class can be assigned to multiple elements for styling or scripting.
8. How do you create a hyperlink in HTML?
Using the
<a>
tag with an href
attribute, e.g., <a href="https://example.com">Link</a>
.9. What are HTML forms used for?
Forms collect user input and submit data to a server for processing, with tags like
<form>
, <input>
, <textarea>
, <button>
, and more.10. What is the role of the
<meta>
tag in HTML? Meta tags provide metadata about the HTML document such as character set, page description, viewport settings, and SEO info.
Double Tap ♥️ For More
❤11
Web development cheatsheet Part-1 🌐📝
HTML Basics
- Structure:
- Headings:
- Links:
- Images:
- Lists:
- Forms:
CSS Basics
- Inline:
- Internal:
- External:
- Selectors:
- Flexbox/Grid for layout
JavaScript Basics
- Add to HTML:
- Variables:
- Functions:
- DOM:
Best Practices
- Use semantic tags:
- Keep CSS and JS in separate files
- Make sites responsive with media queries
React ❤️ for Part-2
HTML Basics
- Structure:
<html> <head> <title>Title</title> </head> <body> ... </body> </html>
- Headings:
<h1>
to <h6>
- Links:
<a href="url">Text</a>
- Images:
<img src="path.jpg" alt="desc">
- Lists:
<ul><li>Item</li></ul>
(unordered) <ol><li>Item</li></ol>
(ordered)- Forms:
<form> <input type="text"> </form>
CSS Basics
- Inline:
<p style="color:red;">Text</p>
- Internal:
<style> p { color: blue; } </style>
- External:
<link rel="stylesheet" href="style.css">
- Selectors:
.class
, #id
, element
- Flexbox/Grid for layout
JavaScript Basics
- Add to HTML:
<script src="script.js"></script>
- Variables:
let
, const
, var
- Functions:
function myFunc() { ... }
- DOM:
document.getElementById("id")
Best Practices
- Use semantic tags:
<nav>
, <main>
, <footer>
- Keep CSS and JS in separate files
- Make sites responsive with media queries
React ❤️ for Part-2
❤7