 Хай аген, в тази лесен ми идем да говорим ото, че е кложер и че е дължава скрипт кложера работа. Ось, че е кложер? Кложер е дължава функцията, която има ексес на върхата функцията с върхата скупчейна. Сега е дължава ексес, която работа с кложера в дължава скрипт. Сега имам тази файл или в тази върхата с върхата. Нираме докато сере на панкшен. Добарвам да бъдва си както къзи отвершаме. Мене заради, панкшен ... се качам... панкшен ... ситив и това си ставим преди са панкшен за то да е къзи. и не ставим ще се автори си. So we want to provide to our function informations about the state and the city and we want to alert message with the capital city of that state. First, let's make a variable text and that variable will contain our string, which we want to alert in our pop-up box in the browser. Let's say, for example, the capital city of our state is and will provide those two variables state and city in our text and now we are going to display our text to the alert box. But let's do that by making an inner function. Let's say that another variable alert capital will contain a function, which will alert our text. You can notice here that our function is inner function, our current function is inner function and function capital city is outer function. But this inner function can use all variables from this outer function. So we have in this outer function variable text and this variable can use that variable. Ok, now let's call our inner function without no arguments and inside of our outer function let's call our capital city function. And let's provide the name of state, for example, let's say, Maryland and let's provide the capital city. Ok, let's save our HTML page and let's see the result of our function. First we need to enable live preview and open our function and as you can see we got an alert box in which we can see the text the capital city of Maryland is Annapolis. Ok, so the main point here is that the inner function can use variables and not just the variables of this outer function. That's all in this lesson. Thanks for watching. Happy coding!