# Kotlin JavaScript (EcmaScript Target)?

**URL:** <https://discuss.kotlinlang.org/t/kotlin-javascript-ecmascript-target/202>\
**Category:** Uncategorized\
**Created:** [July 17, 2015, 1:38pm UTC](https://discuss.kotlinlang.org/t/kotlin-javascript-ecmascript-target/202 "2015-07-17T13:38:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![c\_schmitt](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/c_schmitt/32/1497_2.png) [@c\_schmitt](https://discuss.kotlinlang.org/u/c_schmitt)\
**Post date:** [July 17, 2015, 1:38pm UTC](https://discuss.kotlinlang.org/t/kotlin-javascript-ecmascript-target/202/1 "2015-07-17T13:38:11Z")

</div>

Hello, is it possible to Target multiple EcmaScript Versions? Currently One of our products needs to have ES3 functionality, while we seem a good fit for Kotlin there it would be great to have some kind of Targeting special Versions of Ecmascript. Or does it strictly target ES5?

---

<div class="post-metadata">

**Author:** ![bashor](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/bashor/32/1431_2.png) [@bashor](https://discuss.kotlinlang.org/u/bashor)\
**Post date:** [July 17, 2015, 1:43pm UTC](https://discuss.kotlinlang.org/t/kotlin-javascript-ecmascript-target/202/2 "2015-07-17T13:43:54Z")

</div>

Hi!

ES5 is minimal target which we support, but most features should work on ES3 too.

Could You, please, say why do you need ES3?

---

<div class="post-metadata">

**Author:** ![c\_schmitt](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/c_schmitt/32/1497_2.png) [@c\_schmitt](https://discuss.kotlinlang.org/u/c_schmitt)\
**Post date:** [July 17, 2015, 1:49pm UTC](https://discuss.kotlinlang.org/t/kotlin-javascript-ecmascript-target/202/3 "2015-07-17T13:49:17Z")

</div>

We are writing an Application for Xerox Printers (Xerox Extensible Interface Platform) which only Supports ES3 at a lot of Models that are still supported, so we have no way of only targeting ES5. It totally hard to debug / write software for that kind, since they strictly implementing the ES3 subset of JavaScript.

---

<div class="post-metadata">

**Author:** ![bashor](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/bashor/32/1431_2.png) [@bashor](https://discuss.kotlinlang.org/u/bashor)\
**Post date:** [July 17, 2015, 2:35pm UTC](https://discuss.kotlinlang.org/t/kotlin-javascript-ecmascript-target/202/4 "2015-07-17T14:35:48Z")

</div>

Thanks for the clarification.

Unfortunately we dropped the support ES3 and don’t plan to return it.

---

<div class="post-metadata">

**Author:** ![c\_schmitt](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/c_schmitt/32/1497_2.png) [@c\_schmitt](https://discuss.kotlinlang.org/u/c_schmitt)\
**Post date:** [July 17, 2015, 4:34pm UTC](https://discuss.kotlinlang.org/t/kotlin-javascript-ecmascript-target/202/5 "2015-07-17T16:34:15Z")

</div>

That's no problem at all. I mean Xerox even forbids using anonymous functions and closures, so serious transpiling etc. is hard to do anyways.
