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)

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

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

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.

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 ?

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

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