a="hello"; b=a.sub(); document.write(b);
My eclipse won't help when generating JavaScript code.
this is the part sub() . When i enter
sub()
b=a.s
and I press Ctrl + Space, brings nothing. Why is this?
Eclipse does not have enough information to provide code for JavaScript because JavaScript is an interpreted, dynamically typed language. It has no way of knowing which methods are valid on your variable a after entering that point.
a