This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
public class Program | |
{ | |
public static void Main() | |
{ | |
new MyClass().Main(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class User { | |
constructor(firstName, lastName) { | |
this._firstName = firstName; | |
this._lastName = lastName; | |
} | |
static printAge(age) { | |
console.log("Esse usuário tem " + age + " anos."); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class User { | |
constructor(firstName, lastName) { | |
this._firstName = firstName; | |
this._lastName = lastName; | |
} | |
get fullName() { | |
console.log(this._firstName + " " + this._lastName); | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class User { | |
constructor(firstName, lastName) { | |
this.firstName = firstName; | |
this.lastName = lastName; | |
} | |
getFullName() { | |
console.log(this.firstName + " " + this.lastName); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class User { | |
constructor(firstName, lastName) { | |
this.firstName = firstName; | |
this.lastName = lastName; | |
} | |
getFullName() { | |
console.log(this.firstName + " " + this.lastName); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function User(firstName, lastName) { | |
this.firstName = firstName; | |
this.lastName = lastName; | |
} | |
User.prototype.getFullName = function() { | |
console.log(this.firstName + " " + this.lastName); | |
}; | |
var user = new User("Jon", "Snow"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var usuarios = [ | |
{ | |
nome: 'Diego', | |
habilidades: ['Javascript', 'ReactJS', 'Redux'] | |
}, | |
{ | |
nome: 'Gabriel', | |
habilidades: ['VueJS', 'Ruby On Rails', 'Elixir'] | |
} | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var usuarios = [ | |
{ | |
nome: 'Diego', | |
habilidades: ['Javascript', 'ReactJS', 'Redux'] | |
}, | |
{ | |
nome: 'Gabriel', | |
habilidades: ['VueJS', 'Ruby On Rails', 'Elixir'] | |
} | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const characters = [ | |
{ name: 'Professor', appearAt: '10/05/2017 10:10:10'}, | |
{ name: 'Nairobi', appearAt: '10/05/2017 12:10:10' }, | |
{ name: 'Tókyo', appearAt: '10/06/2017 07:10:10' }, | |
{ name: 'Rio', appearAt: '10/06/2017 09:10:10' }, | |
{ name: 'Denver', appearAt: '10/07/2018 11:10:10' }, | |
{ name: 'Berlim', appearAt: '10/07/2018 17:10:10' }, | |
{ name: 'Helsinque', appearAt: '15/04/2017 12:10:10' }, | |
{ name: 'Moscou', appearAt: '15/04/2017 12:10:10' }, | |
{ name: 'Raquel Murillo', appearAt: '10/09/2020 07:10:10' } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const characters = [ | |
{ name: 'Professor', appearAt: '10/05/2017 10:10:10'}, | |
{ name: 'Nairobi', appearAt: '10/05/2017 12:10:10' }, | |
{ name: 'Tókyo', appearAt: '10/06/2017 07:10:10' }, | |
{ name: 'Rio', appearAt: '10/06/2017 09:10:10' }, | |
{ name: 'Denver', appearAt: '10/07/2018 11:10:10' }, | |
{ name: 'Berlim', appearAt: '10/07/2018 17:10:10' }, | |
{ name: 'Helsinque', appearAt: '15/04/2017 12:10:10' }, | |
{ name: 'Moscou', appearAt: '15/04/2017 12:10:10' }, | |
{ name: 'Raquel Murillo', appearAt: '10/09/2020 25:10:10' } |
NewerOlder