{"componentChunkName":"component---src-templates-tags-index-jsx","path":"/tags/nodejs","result":{"data":{"allMarkdownRemark":{"edges":[{"node":{"frontmatter":{"title":"Working with promises in Javascript","date":"April 20, 2020","path":"blog/promises-in-javascript","tags":["javascript","typescript","nodejs","reactjs"],"excerpt":"Let's talk about promises in javascript. What exactly is a promise in javascript and how to handle promises. This article will talk about the different methods to resolve promises.","cover":{"childImageSharp":{"fluid":{"tracedSVG":"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='400'%20height='244'%20viewBox='0%200%20400%20244'%20preserveAspectRatio='none'%3e%3cpath%20d='M187%2010c-17%204-29%2017-33%2034l-1%205h-8c-9%200-10%201-12%2010-2%2011-2%2011-8%2011-16-1-27%2018-29%2050%200%2012%200%2012%202%2014l5%203%202%201-13%2043c-13%2040-15%2048-12%2051%202%202%20235%202%20237-1%203-2%202-8-6-33l-8-25%205-1c8%200%2010-1%2011-3%204-5%203-7-1-13-12-14-16-26-17-50-1-20-2-24-12-33l-5-5h-21c-18%200-20%200-20-2a46%2046%200%2000-56-56m-46%2051c-1%206-4%2015-6%2016l-9%201c-6%200-7%200-10%203-7%207-12%2022-12%2040v9h16l-2%207-9%2034-7%2026%202%207c2%208%202%209%208%207l5-1h-6c-3%200-4%200-3-1%203%200%203%200%202-3l-1-3a215%20215%200%200136%201l-4%203c-2%201-1%202%2022%202l24%201h-50a251%20251%200%200070%200c7%200%207%200%2012-2h19l34%203h20l1-7%202-7-4-16-4-16%2014-1%2013-1-3-4a89%2089%200%2001-18-57c0-12-2-19-9-24l-4-3h-32l-32%201%203%206%203%209%201%203-7-1c-9%200-15%202-16%206l-1%203-14-1-15-1c-1%200%202-11%204-14%203-4%206-5%2010-2l4%202%201-2c3-4%204-13%204-21v-6l-26-1h-26v5m85%2046c1%208%202%2012%204%2010l1%201c1%201%206%200%206-1h3l1-1v1h6l1-1h3l3-1%201-2c2%202%203-3%201-6-1-3-1-3-2-2h-2c-2-2-2-2%203-2%203%200%201-1-5-1l-12%201h-1l1-1-6-2-2%202-2%202c-2-1-1-4%201-4%201-1%201-1-1-1l-2-1v9m-85%2058l-3%2011h-8c-2-2-8%200-9%202-1%204%2015%206%2022%203%204-3%205-4%206-14%203-13%203-12-2-12h-5l-1%2010m20-8c-7%204-3%2010%208%2013l7%203c2%204-8%206-13%202-3-2-11%200-8%203%203%204%2018%206%2024%203%2010-5%208-11-4-15-8-2-9-4-8-6h13l3-2-3-1c-4-3-15-3-19%200m48%2031c-3%201-9%206-9%208l3-1c5-5%2010-5%2025-4l14%202-8-3c-10-3-20-3-25-2'%20fill='%23d3d3d3'%20fill-rule='evenodd'/%3e%3c/svg%3e","aspectRatio":1.6483516483516483,"src":"/static/c2e2602606aecbaead43ebcb31d5fc22/2a4de/javascript.png","srcSet":"/static/c2e2602606aecbaead43ebcb31d5fc22/6d161/javascript.png 150w,\n/static/c2e2602606aecbaead43ebcb31d5fc22/630fb/javascript.png 300w,\n/static/c2e2602606aecbaead43ebcb31d5fc22/2a4de/javascript.png 600w,\n/static/c2e2602606aecbaead43ebcb31d5fc22/5e6f2/javascript.png 789w","sizes":"(max-width: 600px) 100vw, 600px"}}}}}}]},"allFile":{"edges":[{"node":{"name":"nodejs","childImageSharp":{"fluid":{"tracedSVG":"data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='400'%20height='300'%20viewBox='0%200%20400%20300'%20preserveAspectRatio='none'%3e%3cpath%20d='M71%2094c0%2026%200%2027-2%2026-3-1-6-1-10%201-5%202-6%209-1%2015%202%204%201%205-6%209-9%205-11%207-11%2019l-2%2011c-1%201%202%204%207%209l8%208-1%206-1%209a553%20553%200%20013%2053c0%201-2%202-15%203l-4%201v-32l-1%203a22180%2022180%200%2001-1%2021v8l-6%202c-3%200-7%202-8%203-1%202-1%202%202%204%207%204%2020%206%2053%205%2030%200%2039%200%2048-4%2010-5-2-10-26-12-9%200-9%200-9-2l1-8v-5h240l2%205%205%208%203%203h-2l-7%201c-6%201-8%203-5%205%205%203%2027%204%2040%202%2017-2%2014-6-5-8l-9-1%206-8%206-7h16V67H71v27m201%2035c0%2019%200%2020-5%2017-4-3-3-3-16%205l-11%207-1%2014v14l11%206%2013%207%2013-6%2011-6v-17l1-33v-16l-7-5-8-4-1%2017m-142%2021l-11%208-1%2017%201%2018%208-3%207-5v-19l4-2c5-3%205-3%2010%200l3%203v18l8%204%208%205v-37l-12-7-12-7-13%207m181%201l-11%207v27l11%207%2012%207%208-4%207-4-12-8-11-6v-6c0-4%200-5%204-7l4-2%205%202c4%202%204%203%204%207l1%204%207-4c7-4%208-5%208-8l-1-6-24-13-12%207m-122%201l-8%206%2019%2033-2-44-9%205m70%2013c-4%202-4%202-4%207s1%205%204%207l4%202%205-2c4-2%204-2%204-7s0-5-4-7c-6-3-5-3-9%200M66%20220v15c1%202%200%205-1%208-1%205-1%206%201%2013l1%205h11v-13l-3-1h-4v-16c0-14%200-16-2-18l-2-3-1%2010m269%2028l1%202%202%204c1%203%201%203%202%202s2%201%201%203c0%202%203%205%204%203h1v2c1%200%203-3%203-5l2-7%201-5h-7c-6%200-7%200-6%202l1%202-2-2c-2-2-3-3-3-1'%20fill='%23d3d3d3'%20fill-rule='evenodd'/%3e%3c/svg%3e","aspectRatio":1.3333333333333333,"src":"/static/71ce4e802cc40c5a26855029eba145fb/117a6/nodejs.png","srcSet":"/static/71ce4e802cc40c5a26855029eba145fb/ea52d/nodejs.png 200w,\n/static/71ce4e802cc40c5a26855029eba145fb/7a833/nodejs.png 400w,\n/static/71ce4e802cc40c5a26855029eba145fb/117a6/nodejs.png 800w,\n/static/71ce4e802cc40c5a26855029eba145fb/c4738/nodejs.png 1200w,\n/static/71ce4e802cc40c5a26855029eba145fb/1aa1d/nodejs.png 1600w","sizes":"(max-width: 800px) 100vw, 800px"}}}}]}},"pageContext":{"tag":"nodejs"}},"staticQueryHashes":["4097791827"]}