Compare javascript variables

Is there any differences between

if (txtSample1 == txtSample2)


if (txtThisIsaTestSampleLongProgram1 == txtThisIsaTestSampleLongProgram2)

in performance?  which one will run faster or the same?
Who is Participating?
Pratima PharandeConnect With a Mentor Commented:
I don't think variable name matters in performance , but short varibale names are handy

Dave BaldwinConnect With a Mentor Fixer of ProblemsCommented:
Most programming languages convert variable names in the preprocessor to something that the machine can use better.  I don't think the name matters unless you get ridiculous.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.