It seems like you really just want to add a property to va:
va.b = "Hey b is added";
If, though, you want to augment the prototype that va already has, you do that through a reference to va's prototype object, which you can get in several ways:
Given your code above, via abc.prototype
Or on ES5+ browsers, via Object.getPrototypeOf(va)
So for instance:
function Abc() {
this.a = "Hey this is A";
}
var va = new Abc();
snippet.log(va.a); // "Hey this is A"
snippet.log(va.b); // undefined
Abc.prototype.b = 'Hey b is added';
snippet.log(va.b); // "Hey b is added"
<!-- Script provides the `snippet` object, see http://meta.stackexchange.com/a/242144/134069 -->
<script src="http://tjcrowder.github.io/simple-snippets-console/snippet.js"></script>
Note that adding a property to the prototype means that all objects using that prototype will inherit that property:
function Abc() {
this.a = "Hey this is A";
}
var a1 = new Abc();
var a2 = new Abc();
Abc.prototype.b = 'Hey b is added';
snippet.log(a1.b); // "Hey b is added"
snippet.log(a2.b); // "Hey b is added"
<!-- Script provides the `snippet` object, see http://meta.stackexchange.com/a/242144/134069 -->
<script src="http://tjcrowder.github.io/simple-snippets-console/snippet.js"></script>
abc.prototype = ...orva.b = ...va.b = 'Hey b is added';va.prototypeis just a normal property which happens to have the name "prototype". It has nothing to do with prototypal inheritance if that's what you meant.