a="hello";
b=a.sub();
document.write(b);
My eclipse won't code assist when I write this JavaScript code.
it's the sub()
part. When I enter
b=a.s
and I press ctrl+space, it brings nothing. Why is that?
a="hello";
b=a.sub();
document.write(b);
My eclipse won't code assist when I write this JavaScript code.
it's the sub()
part. When I enter
b=a.s
and I press ctrl+space, it brings nothing. Why is that?
Eclipse doesn't have enough information to provide code completion for JavaScript because JavaScript is an interpreted, dynamically typed language. It has no way of knowing what methods are valid for your a
variable after you type that dot.