Posts by Peter Olson • 191 points
1 post
-
9
votes2
answers508
viewsA: Implementing Cascade Methods (Cascade) in Javascript
The function must return this. Here is an example: function criarPessoa(nome) { return { nome: nome, idade: 25, alterarNome: function(nome) { this.nome = nome; return this; }, alterarIdade:…
javascriptanswered Peter Olson 191