class Data {
#some_private_var
constructor(private_val, regular_val) {
this.regular_var = regular_val
this.#some_private_var = private_val
}
}
For example, if I use Axios to make an API request with an instance of the above class as the body of the request, what gets send over to the server?
Will #some_private_var
get sent over?
What if a getter method is defined like so:
get some_private_var() {
return this.#some_private_var
}