We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa48c36 commit cf40654Copy full SHA for cf40654
scripts/modules/genUser.js
@@ -0,0 +1,4 @@
1
+module.exports.GenUser = function(nome, key){
2
+ console.log({nome: nome,id: key});
3
+ return "Nome : "+nome+", ID: "+key;
4
+}
scripts/modules/serial.js
@@ -0,0 +1,12 @@
+function Generate(max){
+ return Math.floor(Math.random() * max);
+
5
+function Log(text){
6
+ console.log(text);
7
8
9
+module.exports = {
10
+ Generate: Generate,
11
+ Log: Log
12
+};
scripts/modules/user.js
@@ -0,0 +1,18 @@
+class User{
+ constructor(name){
+ this.nome = name;
+ console.log("Novo usuario : "+ name);
+ }
+ getNome(){
+ return this.nome;
+ getId(){
13
+ return Math.floor(Math.random() * 10000);
14
15
16
17
18
+exports.CreateUser = User;
0 commit comments