Sign in

1. What is React?

React is a JavaScript library. it is not exactly a framework.

2 .what is the framework?

the framework serves a great purpose framework is not flexible, though some claim to be. A framework usually wants you to code everything a certain way.

  • React is building a user interface (UI) is anything we put in front of users to have them interact with a machine we can use react to describe a UI for it. …

Server and Node.js

ACC Assignment-1

  • What is a web server?

A web server is software and hardware that uses HTTP(Hypertext Transfer Protocol) and other protocols to respond to client requests made over the World Wide Web. The main job of a web server is to display website content through storing, processing and delivering web pages to users. Besides HTTP, web servers also support SMTP (Simple Mail Transfer Protocol) and FTP (File Transfer Protocol), used for email, file transfer and storage.

Web server hardware is connected to the internet and allows data to be exchanged with other connected devices, while web…

1. what are closures?

  • Closures are when the function is able to remember and access the lexical scope even when that function is executing outside its lexical scope


function stopWatch(){

let count=0;

return function(){


return count;



const clock1=stopWatch();





2 . Usage in Function Components

  • Here, instead of rendering to the DOM, we’ve opted to just console.log out our state. We’re also exposing a programmatic API for our Counter so we can run it in a script instead of attaching an event handler. With this design, we are able to simulate our component rendering and reacting to user actions

2. Stale Closure


1 . Discuss about Error handling

  1. in error handling using Four keyword
  2. try
  3. catch
  4. finally
  5. throw

2. why use error handling?

Then if we create large apps suppose 1000 line code in the run time has found anyone line error we can not see our output for that reason using error handling. if we use try catch it’s ignore the error code and display the output.

declaration of try..catch






catch is a function it work is before find execution error handle

try work where error have a possibility that’s place



alert(“Hello everyone”);

alert(“Bye Bye”);



alert(“Inside catch block”)

JavaScript is a dynamic computer programming language .it is lightweight and most commonly used as a part of web pages and it is the scripting & interpreted programming language.

2. Variable:

a variable used to store information ,that value can change in the computer program

if we want declare a variable we just remember 5 thinks first write the key word var or let or const and second give the name of variable third =sign fourth given variable value name and finally give semicolon ;


Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store