Week 6 Badge PDF
Document Details
Uploaded by WellEducatedHydrogen
Tags
Summary
This document covers different concepts and topics related to web development and programming. It includes discussions on JavaScript, Node.js, and MongoDB, and provides code examples and explanations. It's an excellent resource for learning about web development and common software development elements.
Full Transcript
IIFE purpose WEEK 6 BADGE deep copying class add/remove key in object closure - applications & drawbacks Flatten the array TDZ...
IIFE purpose WEEK 6 BADGE deep copying class add/remove key in object closure - applications & drawbacks Flatten the array TDZ Object manipulation split promise chaining workouts based on arrays shallow copy v/s deep copy with example object manipulation currying object. Seal vs freeze Map arrow function vs regular functions globalThis this keyword is undefined an object? ECMAScript function vs methods execution context call, apply & bind - workouts webapi queries with logical operators follow JS coding conventions aggregate queries class: constructor syntax $expr $exists $elemMatch destructuring application vs router level middleware spread an object changing a property in it examples of built in middleware's generate 5 prime numbers express. Static reduce(): sum of positive numbers express.urlencoded remove nth element from array package-lock.json removing object key nvm cancel a setlimeout after 2 seconds strict mode html vs view engines object prototype explore more on CORS Symbol understand the session management use of IIFE, modern alternative Variable shadowing currying event delegation Map generator function to generate even dynamic typing numbers JS coding conventions Buffer class class: constructor, method, properties spawn vs fork identify and use datatypes properly exec vs execFile call() vs apply() express.urlencoded combine two arrays using spread deep copy object app.all destructuring arrays app.locals preflight request partials MongoDB Database Geospatial index SQL and NoSQL hashed index MongoDB advantages & create index disadvantages upset Mongoose database profiler Collection covered query Capped collection clustered collection CRUD Partition tolerance Compass $merge Find method $elemMatch Insert Sort $pullAll Limit Aggregate practical's Update (One & Many) Update operators - set, unset, inc JavaScript Array update operators - push, pull, rename, addToSet, pop is null an object Field filters void Delete Object.seal Skip Comparison query operators (lt, gt, Perform a transaction eq, ne) Create indexes $in, $nin BSON advantages Logical operators (and, or, not, TTL index nor) Isolation Indexing $set vs $push Type of indexing $out Primary key and secondary key index Node & ExpressJS Drawbacks of indexing fs.unlink TTL, Multikey index cluster module Unwind CommonJS Index methods (Get Index, Drop Worker threads Index) Environment variables Element operators (exists, type) Structure of HTTP request and Array operators (elematch, all) response Unsert vs save Changing HTTP status code when Distinct rendering template Namespace Browser cache, types of browser Sharding storage JSON Localhost Extended JSON Socket BSON ODM (Object-Document Mapper) Data type Query params vs path params Aggregation framework Using query params in Pipeline middleware Match, group, project, sort, limit, Error handling middleware args unwind, lookup, skip, count, out, app.all addfield app.locals Distinct - unique app.set Accumulators - max, min, sum, CSRF (Cross-Site Request avg, first & last Forgery) Unary operators Cookie headers Alias Cache headers MongoDB Utilities res.send() , res.write() Backup and restore commands localstorage v/s sessionstorage Replication cookie and session Replica set concurrency vs parallelism allowDiskUse spawn() vs fork() GridFS how dns work Vertical and horizontal scaling How to optimise performance of Normalization and denormalization API Atlas web service worker Regex process us thread: need clarity Cursor cluster module: thread or process Election HTTPS CAP theorem socket Views CSRF Embedded object browser cache Trigger understand browser storages Bitwise operator better Transactions cookie expiry Journaling User-Agent Timestamp Child process, spawn(), fork(), Covered query exec() Bulk write Microtask vs macrotask Perform backup & restore Adding data to environment Partition tolerance variable from terminal Clustered Collection Cluster module Create a capped collection Parts of HTTP request and response, CSRF, and how to prevent it Invoking an error handling middleware Query params, using them in middleware Dynamic route, URL params, req.params Parts of a URL HTTP OPTIONS, HTTP HEAD Same-origin policy, CORS, preflight request HttpOnly cookies Types of browser storage app.all, app.get, app.post app.set, app.locals express.json() Authentication vs authorization Common HTTP status codes Problems How to check if an object is empty or not. Delete the repeated elements from an array (without using Set). Removing the nth element from an array..map(): Convert elements to uppercase..reduce(): Find the longest string in an array. Generator function to yield multiples of a given number endlessly. Check if a string is a palindrome or not. Rearrange "Hello world" to "world Hello". loop an object to print key and value destructuring spreading an object and changing a key elements common in two arrays cancel setTimeout after 1 second remove nth element from array.reduce(): count characters in array, find longest string