-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.js
More file actions
32 lines (27 loc) · 768 Bytes
/
main.js
File metadata and controls
32 lines (27 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//used to ensure all the usernames for all the accounts are unqiue
const usernames = [];
function UnqiueUsername(username) {
for(let i = 0; i < usernames.length; i++){
if(username == usernames[i]){
return false;
}
}
return true;
}
//use something like bycryt for password encryption
//this will store the currently made accounts to make it easier to fine specific people based on their username
//remember to pass these into functions; if not return the lists
const admins = [];
const employees = [];
const customers = [];
//make list of all the cars on system
const cars = [];
//export lists to use in the future
export{
cars,
admins,
employees,
customers
}
//use this to import
//import { foods, drinks } from './example.js';