Difference between .value and .getValue()?

When accessing variable values via JavaScript, should I use VarMyLittleVariable.value or VarMyLittleVariable.getValue()? They seem to return same thing as far as I tested (see screenshot).

Screen-Shot-2016-06-10-at-17.06.40.png

Discussion (6)

It's VarCurrentView.getValue(), not CurrentView.getValue().

When a variable value is changed due to an action. Like when you answer a question and the question variable gets changed to correct.

I asked around for this question. Essentially they are the same thing however .getValue() is the best to use. When an override is in place it usually effects .value.

Thank you! What is the 'override' you are referring to?

Allthough a bit out of context... Tried to access CurrentView.getValue() but didnot get it back in Javascript. Testing it in Lectora itself, it was available... Any clues ?

Oh yeah forgot that one.... and indeed it works now... before i banged my head against my screen and couldnt get it .... probably plain overlooking it... thx Sergey..

Discussions have been disabled for this post