Question: I am new learner of Javascript and I got stuck in "**functions returned from other functions**". 
The code is as below.

```
var createScream = function(logger) { return function(message) {
            logger(message.toUpperCase() + "!!!")
        }
}

const scream = createScream(message => console.log(message))

scream('functions can be returned from other functions')
scream('createScream returns a function')
scream('scream invokes that returned function')

```

**Console output:**

> 
> "FUNCTIONS CAN BE RETURNED FROM OTHER FUNCTIONS!!!" "CREATESCREAM
>  RETURNS A FUNCTION!!!" "SCREAM INVOKES THAT RETURNED FUNCTION!!!"
> 
> 
> 

**Question:** why it will work this way? what is the process of executing? 
Does function scream have any parameter? how does it work?

This may be very easy, I searched but no clear explanation.
Can someone please give me a hint or explain the whole execution process in details?

Thanks in advance!

Answer: 
Here is the solution that I reached. The main issue that I was having was that I had assigned 
```
width:50%
```
 to img instead of the container.

Here are the final(ish) code blocks that are working as intended. Thanks for the suggestions!

```
<!DOCTYPE html>
<html>

    <head>
        <link rel="stylesheet" href="Stylesheets/default.css">
    </head>

    <body>
        <div class="page">

            <div class="img-wrapper-l">
                <a href="pol.html"><img src="Images/cal-engel-531490-unsplash.jpg"></a>
            </div>

            <div class="img-wrapper-r">
                <a href="biz.html"><img src="Images/rawpixel-660717-unsplash.jpg"></a>
            </div>

            <div class="clear"></div>

        </div>

    </body>

```

```
html, body {
    height: 100%;
    margin: 0;
}

#wrapper {
    min-height: 100%; 
}

.page {
    width: 100%;
    max-height: 100vh;
    white-space: nowrap;
    overflow: hidden;
}

.img-wrapper-l {
    height: 100%;
    width: 50%;
    overflow: hidden;
    position: absolute;
    float: left;
}

.img-wrapper-r {
    height: 100%;
    width: 50%;
    overflow: hidden;
    position: relative;
    float: right;
}

img {
    height: auto;
    width: auto;
    max-width: 1200px;
    max-height: 1200px;
}

```
Try adding 

```
.page { overflow: hidden; }

```

to your code. This should hopefully ensure that any overflowing content is hidden.