Javascript, Programming

JavaScript Promises

A promise is a JavaScript object used to handle asynchronous operations. Before the promise was introduced in JavaScript, events and callback functions were used to handle the asynchronous events.  Promises provide a better way of handling multiple callbacks at the same time, thus avoiding the multiple nested callbacks and errors.

Continue reading

Views: 17

Standard
CSS

CSS Flexbox Layout

CSS Flexible Box Layout, commonly known as Flexbox is a one-dimensional layout model that has flexible and efficient layouts for arranging items either in rows or columns. Flex-box is contrasted with the two-dimensional model of CSS Grid Layout, which controls columns and rows together. Items flex is used to fill additional space or shrink to fit into smaller spaces. Flex layout makes it easier to build responsive web pages without using many float and position properties in the CSS code.

Continue reading

Views: 101

Standard