mirror of
https://github.com/Cametendo/EMVs-Creative-coding.git
synced 2026-06-20 17:45:02 +02:00
Added some things
This commit is contained in:
22
Week-3/import-export/directExport.js
Normal file
22
Week-3/import-export/directExport.js
Normal file
@@ -0,0 +1,22 @@
|
||||
export const someString = "just a string";
|
||||
export const someNumber = 2;
|
||||
export const someObject = {
|
||||
name: "Oger",
|
||||
rank: 1,
|
||||
title: "Oger",
|
||||
class: "Beast",
|
||||
race: "Oger",
|
||||
};
|
||||
|
||||
export function normalFunction() {
|
||||
console.log("nomral function!");
|
||||
}
|
||||
|
||||
export const arrowFunction = () => console.log("arrow function!");
|
||||
|
||||
export class SomePeron {
|
||||
constructor(name, age) {
|
||||
this.name = name;
|
||||
this.age = age;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user