Skip to main content
Advanced Search
Search Terms
Content Type

Exact Matches
Tag Searches
Date Options
Updated after
Updated before
Created after
Created before

Search Results

243 total results found

Symbol Type

NodeJs/JavaScript JavaScript Roadmap Journey

Symbols In JavaScript there is two primitive types that can be used as object property key String Symbol type Don't confuse the symbol type in Ruby with JavaScript they are different albeit similar in that they are used to create unique identifier. A ...

Arrays and methods

NodeJs/JavaScript JavaScript Roadmap Journey

Array Two ways of creating empty array let arr = new Array(); let arr = []; Create an array with elements in them let arr = ["Apple", "Orange", "Plum"]; Array in JavaScript is heterogeneous, you can store element of any type in them. arr.length property...

Iterables

NodeJs/JavaScript JavaScript Roadmap Journey

Iterables A generalization of arrays, it allows us to make any object iterable in the context of for ... of loop. Making an object iterable just requires you to add the Symbol.iterator hidden property which is a function that returns the iterator. Really dou...

Map and set, weakmap and weakset

NodeJs/JavaScript JavaScript Roadmap Journey

Map Very similar to an object, however, with object the only key that is allowed is a String. Map on the other hand allows keys of any type. Any type as it ANY type, even an object can be used as a key new Map(): Creates a new empty map map.set(key, value...

Destructuring assignment

NodeJs/JavaScript JavaScript Roadmap Journey

Destructuring assignment A special syntax to let us unpack either array or object into different variables Array destructuring let arr = ["Ricky", "Lu"] let [firstName, lastName] = arr; console.log(firstName); // "Ricky" console.log(lastName); // "Lu...

JSON

NodeJs/JavaScript JavaScript Roadmap Journey

JSON file When you want to transport say a complicated object or an array of object to another compute using network. You cannot transport a complicated object just directly as "it is". You must serialize it which essentially turns the object into a stream of...

Miscellaneous function topics

NodeJs/JavaScript JavaScript Roadmap Journey

Rest parameters and spread syntax How do we make a function take in an arbitrary number of arguments? Simple we use the ... rest operator in the function header. function sum(...args) { let sum = 0; for (let arg of args) sum += arg; return sum; } ...

Getters & setters

NodeJs/JavaScript JavaScript Roadmap Journey

Virtual property In addition to the normal property that we have for objects, we can also set up virtual properties. They appears to the outside code as if they were the object's property but they are actually implemented as functions underneath. let user = ...

All about prototypes

NodeJs/JavaScript JavaScript Roadmap Journey

Prototype inheritance Every object have a special hidden property [[Prototype]] it is either null or a reference to another object. Whenever you read a property from object and if it is missing, JavaScript will automatically take it from the prototype. Sett...

Classes in JavaScript

NodeJs/JavaScript JavaScript Roadmap Journey

Class basic syntax Besides using a constructor function there is a more advance object oriented programming construct called class in JavaScript. The basic syntax is as follows: class MyClass { constructor() {} method1() {} method2() {} } To ut...

Try...catch

NodeJs/JavaScript JavaScript Roadmap Journey

Syntax try { // Code } catch (err) { // Error handling } finally { // Excuted always, regardless if there is any error. And is always last // It is also executed right before you return if you decide to return/throw from try and catch } Keep ...

Promises and promise chaining

NodeJs/JavaScript JavaScript Roadmap Journey

Time before promise, callbacks There are entities in JavaScript that let you schedule asynchronous tasks, tasks that you initiate first, then they will finish later. Task like disk reading, fetching resources from network that will take arbitrary amount of t...

More promise API

NodeJs/JavaScript JavaScript Roadmap Journey

Promise.all This API will allow us to take in an iterable, an array of promises and return a new promise. That returned promise will only be resolved when all listed promises are resolved, the array of their results will become the result of this returned pr...

Async and await

NodeJs/JavaScript JavaScript Roadmap Journey

async keyword async keyword is placed before a function like so: async function f() { return 1; } It basically make your function always returns a promise. If you didn't return a promise explicitly in the function they will be wrapped in a resolved promi...

All about modules

NodeJs/JavaScript JavaScript Roadmap Journey

Two different standards In the browser JavaScript ecosystem, JavaScript modules depends on import and export statements to load and export ES modules. In addition, ES module is the official standard format to package JavaScript code for reuse. On the other ...

OAuth 2.0

NodeJs/JavaScript

Time before OAuth Before OAuth was invented, a common way to give third-party application access to your account is to just provide them your password. This way of allowing third-party application accessing your account information of course have number of pr...

Overview about the certificate

AWS Solution Architect Notes AWS Overview Course

What this certificate covers This certificate proves that you are able to design and implement systems on AWS, the system you designed have high resiliency, have high performance, have good security, and is cost optimized.  

Domain 1: Resilient architrectures

AWS Solution Architect Notes AWS Overview Course

Multi-tier solutions Exam item will require you to understand and implement several aspects across topics. Multi-tier solutions refers a general framework that divides up independently scalable applications components, that can be independently developed, ma...

Questions and AWS resource differences

AWS Solution Architect Notes

AWS Lambda Can have a maximum runtime of only 15 minutes. A great option for hosting microservices that does a certain task independently of others. Combine with API Gateway to host the API, they both scale very fast and is great against DDos. Hard to overw...

Domain 2: High-performing architectures

AWS Solution Architect Notes AWS Overview Course

Elastic vs scalable Although they both mean adapting to dynamic environments they don't really mean the same thing. Scalable means that you are allocating resource expansion on a more persistent level to meet workload growth. Take the example of pizza place,...