WC Viva
WC Viva
Browsers like Chrome, Firefox, and Safari interpret HTML, CSS, and JavaScript code to display web
pages.
HTTP Protocol: A stateless protocol that allows fetching resources like HTML documents. Methods
HTTPS: Secure version of HTTP using SSL/TLS encryption for secure communication.
DNS: Domain Name System, translates human-readable domain names (like www.example.com)
into IP addresses.
TLS/SSL: Transport Layer Security and its predecessor, Secure Sockets Layer, are protocols for
XML: Extensible Markup Language, a flexible way to structure data for exchange between systems.
JSON: JavaScript Object Notation, a lightweight data-interchange format, easy to read and write by
DOM (Document Object Model): A programming interface for web documents that allows
REST API: Representational State Transfer; a set of rules for building APIs that allow interaction
Example:
Creating a simple API request using the fetch() method in JavaScript to get data from a server:
fetch('https://api.example.com/data')
2. JavaScript
Introduction to JavaScript:
Objects in JavaScript: JavaScript uses objects to store collections of data and more complex
entities.
Browser Objects and DOM: Interaction with the browser using objects like window, document (DOM
manipulation).
Event Handling: Functions triggered in response to user interactions like clicks or key presses.
Form Validation: Ensures correct data entry in form fields (e.g., using onsubmit event).
ES5 vs ES6:
ES5 introduced basic object manipulation, while ES6 brought in new features like arrow functions,
Key Concepts:
Functions & Arrow Functions: Arrow functions provide a compact syntax for writing functions in ES6.
Promises and Fetch: Used to handle asynchronous operations like API calls.
Client-server Communication: Involves sending requests (via fetch, XMLHttpRequest) and receiving
responses.
Example:
3. React Fundamentals
Basic folder structure includes directories for components, assets, styles, etc.
Components:
Core building blocks of React, which are reusable chunks of the user interface.
Props are inputs passed down from parent components to child components.
React Router: A library for routing in React applications to manage navigation between pages.
UI Design, Forms, Events, Animations: Handling user input, validating forms, and creating
interactive elements.
Example:
function Welcome(props) {
4. Node.js
Environment Setup: Installing Node.js from the official website or using nvm.
First App: A simple Node.js app that listens on a port using Express.js.
Asynchronous Programming: Use of callbacks, promises, and async/await for non-blocking I/O.
Event Loop: Handles asynchronous tasks by placing them in the queue until they are executed.
Buffers & Streams: Buffers represent binary data in memory; streams allow reading/writing of data
asynchronously.
File System Module: Enables interaction with the file system (read, write, update files).
Example:
res.write('Hello, World!');
res.end();
}).listen(8080);
5. Express.js
Introduction: Express is a minimal web framework for Node.js to build web applications and APIs.
res.send('Hello, World!');
});
6. Advanced React
Hooks (e.g., useState, useEffect): A feature of functional components that lets you manage state
Flow Architecture & Flux: Unidirectional data flow in React applications to manage state (Flux is a
concerns.
Bundling with Webpack: Webpack is a module bundler used to compile JavaScript modules and
Example:
function Counter() {
const [count, setCount] = useState(0);
useEffect(() => {
});
return (
<div>
Click me
</button>
</div>
);