Why doesn't Eclipse code help some elements?

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

b=a.s

      

and I press Ctrl + Space, brings nothing. Why is this?

+1


a source to share


1 answer


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.



+1


a source







All Articles