diff --git a/README.md b/README.md index ae208c40..9ca06d97 100644 --- a/README.md +++ b/README.md @@ -1395,6 +1395,9 @@ Because of hoisting, functions can be used before they are declared. **[⬆ Back to Top](#table-of-contents)** +![JavaScript Hoisting](images/hoisting.png) + + 27. ### What are classes in ES6 In ES6, Javascript classes are primarily syntactic sugar over JavaScript’s existing prototype-based inheritance. diff --git a/images/hoisting.png b/images/hoisting.png new file mode 100644 index 00000000..f4174ba2 Binary files /dev/null and b/images/hoisting.png differ