Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17117

New User- Typescript or Javascript

$
0
0

What’s the best/recommended scripting language to use with Cocos; Typescript or Javascript?

What are the main differences? (I’m looking for the easiest/fastest to implement.) or does mixing them up have some benefit?

I noticed that with Javascript there are some discrepancies in tutorials; for example the following function declarations both can be used

eg:
onLoad () {},
//or
onLoad:function(){},

…and so sometimes it all seems like guesswork which one to use (different ways to write the same thing). Is typescript any more consistent?

Thanks

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 17117


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>