# Importation of JS functions in Kotlin

**URL:** <https://discuss.kotlinlang.org/t/importation-of-js-functions-in-kotlin/21789>\
**Category:** JavaScript\
**Created:** [May 11, 2021, 7:33am UTC](https://discuss.kotlinlang.org/t/importation-of-js-functions-in-kotlin/21789 "2021-05-11T07:33:27Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![fatjoe79](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/fatjoe79/32/4221_2.png) [@fatjoe79](https://discuss.kotlinlang.org/u/fatjoe79)\
**Post date:** [May 12, 2021, 9:03pm UTC](https://discuss.kotlinlang.org/t/importation-of-js-functions-in-kotlin/21789/6 "2021-05-12T21:03:38Z")

</div>

The first thing to learn about is JavaScript modules. You need to put your Javascript function into a Javascript module. However there are many different module standards in JavaScript. The first thing you should do is learning how to use them.

Search for tutorials describing JavaScript modules. Learn how to use them. Write your own small JavaScript project that imports JavaScript modules.

Once you have learned about JavaScript modules, you can search for Kotlin tutorials that describe how to use and import JavaScript modules into Kotlin code.

---

_[View the full topic](https://discuss.kotlinlang.org/t/importation-of-js-functions-in-kotlin/21789)._
