I want to know which one should I learn . some said javascript is very easy and c# a little hard but some says to learn c# because its lot better . but iam do not have any experience in any programming so iam new beginner so which one suit for me?
You’ve opened a can of worms. This is something of a religious debate.
Personally, I disagree that JS is “easier” — it requires less typing in some cases, but for most programmers of any level, typing is not the major difficulty. For beginners in particular, the common difficulties are things like mixing up “=” and “==”, and C# does a much better job of catching this and helping you use the one you meant. For that reason, I believe C# is actually much easier.
Then I will go with c# and what is that you saying something on first line like can of worms?
Two years ago I chose to start programming in UnityScript, partly because I liked the typing better than C#, partly to challenge myself by translating tutorials from C# to UnityScript, finding functional workarounds for things done in C# that might not be as easily done in UnityScript, etc. Since I’m apparently somewhat of a masochist, I did this with #pragma strict, typing out full class declarations, specifying private/public variables and methods/functions - in short, not making use of all the shortcuts that exist in UnityScript ^^; And I’ve stuck with it since, because I am too stubborn to change…
Well, there’s some sense in that — if I were going to use UnityScript at all, I would certainly do it with #pragma strict on, which makes it almost as good as C#. ![]()