Update blog excerpts
Highlight code, fix a problem with a missing excerpt.
This commit is contained in:
@ -4,7 +4,7 @@ type: story
|
||||
tags: javascript,function
|
||||
authors: chalarangelo
|
||||
cover: blog_images/js-functions.jpg
|
||||
excerpt: Learn everything you need to know about JavaScript's Function.prototype.call(), Function.prototype.apply() and Function.prototype.bind() with this short guide.
|
||||
excerpt: Learn everything you need to know about JavaScript's `Function.prototype.call()`, `Function.prototype.apply()` and `Function.prototype.bind()` with this short guide.
|
||||
---
|
||||
|
||||
### Function.prototype.call()
|
||||
|
||||
@ -4,7 +4,7 @@ type: question
|
||||
tags: javascript,date,promise
|
||||
authors: chalarangelo
|
||||
cover: blog_images/sleepy-cat.jpg
|
||||
excerpt: Learn all the different ways you can implement a sleep() function in JavaScript.
|
||||
excerpt: Learn all the different ways you can implement a `sleep()` function in JavaScript.
|
||||
---
|
||||
|
||||
JavaScript does not come with a `sleep()` function out of the box and that is probably a good idea considering the environments where it runs and the trouble such a function could cause if used incorrectly. The closest equivalent of such a function is `setTimeout`, however there are other, less common ways to implement a function that will freeze the current thread for a specified amount of time.
|
||||
|
||||
@ -4,7 +4,7 @@ type: story
|
||||
tags: javascript,function,object
|
||||
authors: chalarangelo
|
||||
cover: blog_images/u-got-this.jpg
|
||||
excerpt: JavaScript's "this" keyword is a source of confusion for many beginners and veterans alike. Learn how it works in different scenarios and start using it correctly.
|
||||
excerpt: JavaScript's `this` keyword is a source of confusion for many beginners and veterans alike. Learn how it works in different scenarios and start using it correctly.
|
||||
---
|
||||
|
||||
### What is `this`?
|
||||
|
||||
@ -4,7 +4,7 @@ type: question
|
||||
tags: javascript,type,variable
|
||||
authors: chalarangelo
|
||||
cover: blog_images/javascript-variable-hoisting.jpg
|
||||
except: One of the most commonly asked JavaScript interview questions is about hoisting. It's also a concept that might require some getting used to, so read our guide to learn more.
|
||||
excerpt: One of the most commonly asked JavaScript interview questions is about hoisting. It's also a concept that might require some getting used to, so read our guide to learn more.
|
||||
---
|
||||
|
||||
Before your JavaScript code is executed, it is first parsed and compiled. During the _compile_ phase, variable and function declarations are put into memory, which is called **hoisting**.
|
||||
|
||||
Reference in New Issue
Block a user