Advertisement
Guest User

Untitled

a guest
Jan 21st, 2020
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.83 KB | None | 0 0
  1. //PC CASE
  2. enum Vormfactor {
  3. atx, matx, itx
  4. }
  5.  
  6. //PC CASE KLEUR
  7. enum Kleur {
  8. black, gray, blue, white, red
  9. }
  10.  
  11. //PC CASE MATERIAL
  12. enum Materiaal {
  13. steel, temperedglass, plastic, aluminum, metal
  14. }
  15.  
  16. //USBPoorten
  17. /**interface USBPoort {
  18. type : USBVersion;
  19. aantal : number;
  20. }
  21. */
  22.  
  23. //Moederbord geheugentype
  24. enum Moederbordgeheugentype {
  25. DDR3, DDR4, DDR5
  26. }
  27.  
  28. //Moederboard overclock
  29. enum Moederboardoverclock {
  30. Yes, No
  31. }
  32.  
  33. //Moederbord socket
  34. enum Moederboardsocket {
  35. Intel,
  36. AMD
  37.  
  38. }
  39. //CPU socket
  40. enum CPUsocket {
  41. Intel,
  42. AMD
  43. }
  44.  
  45. class pcCase {
  46. name: string;
  47. ondersteuntVormFactoren: Vormfactor [] = [Vormfactor.atx, Vormfactor.matx, Vormfactor.itx];
  48. color: Kleur;
  49. material: Materiaal;
  50. length: number;
  51. width: number;
  52. height: number;
  53. maxGpuLength: number;
  54. maxCpuCoolerHeight: number;
  55. expSlots: number;
  56. ssdDriveBays: number;
  57. hddDriveBays: number;
  58.  
  59. //Welke vormvactorondersteuning? (Int waarde)
  60. ondersteunt(motherBoard: motherBoard) {
  61. return this.ondersteuntVormFactoren.indexOf (motherBoard.vormFactoren) >= 0
  62. }
  63.  
  64. constructor (strName: string, color: Kleur, material: Materiaal,
  65. numLength: any, numWidth: number, numHeight: number, numGpuLength: number, numCpuCoolerHeight: number,
  66. numExpSlots: number, numSsdDriveBays: number, numHddDriveBays: number)
  67. {
  68. this.name = strName;
  69. this.color = color;
  70. this.material = material;
  71. this.length = numLength;
  72. this.height = numHeight;
  73. this.width = numWidth;
  74. this.maxGpuLength = numGpuLength;
  75. this.maxCpuCoolerHeight = numCpuCoolerHeight;
  76. this.expSlots = numExpSlots;
  77. this.ssdDriveBays = numSsdDriveBays;
  78. this.hddDriveBays = numHddDriveBays;
  79. }
  80. };
  81.  
  82. //ATX PC Cases
  83. let coolermastermb520 = new pcCase ("Coolermaster MB520", Kleur.black, Materiaal.plastic, 496, 217, 468, 410, 165, 7, 2, 4);
  84. let nzxth510 = new pcCase("NZXT H510", Kleur.white, Materiaal.steel, 428, 210, 468, 381, 160, 7, 3, 3);
  85. let corsairicue220t = new pcCase ("Corsair iCUE 220t", Kleur.white, Materiaal.steel, 395, 210, 450, 300, 160, 7, 2, 2);
  86. let fractaldesignmeshifyc = new pcCase("Fractal Design Meshify C", Kleur.black, Materiaal.steel, 395, 212, 440, 315, 172, 7, 3, 2);
  87. let phantekseclipsep300 = new pcCase ("Phantekseclipse P300", Kleur.black, Materiaal.steel , 400, 200, 450, 330, 160, 7, 2, 2);
  88. let sharkoontg4 = new pcCase ("Sharkoon TG4", Kleur.black, Materiaal.steel, 455, 200, 430, 375, 160, 6, 4, 2);
  89. //m-ATX PC Cases
  90. let coolermasterq300l = new pcCase ("Coolermaster Q300L", Kleur.black, Materiaal.steel, 387, 230, 381, 360, 159, 4, 2, 1);
  91. let nzxth400 = new pcCase ("NZXT H400", Kleur.black, Materiaal.steel, 421, 210, 417, 360, 159, 4, 3, 1);
  92. let corsaircrystal280x = new pcCase ("Corsair Crystal 280X", Kleur.black, Materiaal.steel, 398, 276, 351, 300, 180, 4, 3, 2);
  93. let fractaldesignfocusgmini = new pcCase ("Fractal Design Focus G mini", Kleur.black, Materiaal.steel, 464, 205, 383, 380, 165, 4, 1, 2);
  94. //let phanteksenthooevolv = new pcCase ("Phanteks Enthoo Evolv", ["black", "gray", "white"], ["steel", "tempered glass", "aluminum"], 400, 230, 453, 319, 192, 4, 2,2);
  95. //let sharkoons1000window = new pcCase ("Sharkoon s1000 Window", "black", ["steel", "tempered glass", "aluminum"], 453, 195, 402, 400, 150, 4, 2, 2);
  96. //ITX PC Cases
  97. //let coolermastermch100 = new pcCase ("Coolermaster MCH100", ["black", "gray"], ["steel", "plastic"], 312, 216, 301, 210, 83, 2, 3, 1);
  98. //let nzxth210 = new pcCase ("NZXT H210", ["black", "gray"], ["steel", "tempered glass"], 372, 210, 349, 325, 165, 2, 4, 1);
  99. //let fractaldesignnode304 = new pcCase ("Fractal Design Node 304", ["black", "white"], ["steel", "tempered glass"], 372, 250, 210, 310, 165, 2, 3, 1);
  100. let phanteksenthooevolvshiftair = new pcCase ("Phanteks Enthoo Evolv Shiftair", Kleur.gray, Materiaal.metal, 370, 225, 180, 315, 150, 2, 1 ,1);
  101. let sharkoonsharkzonec10 = new pcCase ("Sharkoon SHarkzone C10", Kleur.gray, Materiaal.metal, 370, 225, 180, 315, 150, 2, 1, 1);
  102.  
  103. //MOTHERBOARD
  104. class motherBoard {
  105. vormFactoren: Vormfactor;
  106. name: string;
  107. overclock: Moederboardoverclock;
  108. ramSlots: number;
  109. memory: Moederbordgeheugentype;
  110. ddrSpeed: any;
  111. socket: any;
  112. pciSlots: number;
  113. m2Slots: number;
  114. sataConnectors: number;
  115. usb31: number;
  116. usb20: number;
  117. rgbHeader: number;
  118.  
  119. constructor (strName: string, formaat: Vormfactor, Moederboardoverclock: Moederboardoverclock, numRamSlots: number,
  120. anyMemory: any, anyDdrMemory: any, Moederboardsocket: Moederboardsocket, numPciSlots: number, numM2Slots: number,
  121. numSataConnectors: number, numUsb31: number, numUsb20: number, numRgbHeader:number)
  122. {
  123. this.name = strName;
  124. this.vormFactoren = formaat;
  125. this.overclock = Moederboardoverclock;
  126. this.ramSlots = numRamSlots;
  127. this.memory = anyMemory;
  128. this.ddrSpeed = anyDdrMemory;
  129. this.socket = Moederboardsocket;
  130. this.pciSlots = numPciSlots;
  131. this.m2Slots = numM2Slots;
  132. this.sataConnectors = numSataConnectors;
  133. this.usb31 = numUsb31;
  134. this.usb20 = numUsb20;
  135. this.rgbHeader = numRgbHeader;
  136. }
  137. };
  138.  
  139. //ATX Motherboards Intel
  140. let gigabytez390gamingx = new motherBoard ("Gigabyte Z390 GamingX", Vormfactor.atx, Moederboardoverclock.Yes, 4, Moederbordgeheugentype.DDR4, "4266MHz", Moederboardsocket.Intel, 2, 2, 6, 5, 2,1);
  141. let msiz390apro = new motherBoard ("MSI Z390-A Pro", Vormfactor.atx, Moederboardoverclock.Yes, 4, Moederbordgeheugentype.DDR4, "4400MHz", Moederboardsocket.Intel, 2, 2, 6, 4, 2, 1);
  142. let asusrogstrixb360fgaming = new motherBoard ("Asus ROG Strix B360-F Gaming", Vormfactor.atx, Moederboardoverclock.No, 4, Moederbordgeheugentype.DDR4, "2666MHz", Moederboardsocket.Intel, 2, 2, 6, 3, 4, 1);
  143. let msib360apro = new motherBoard ("MSI 360-A Pro", Vormfactor.atx, Moederboardoverclock.No, 4, Moederbordgeheugentype.DDR4, "2666MHz", Moederboardsocket.Intel, 2, 1, 6, 2, 2, 0);
  144. //m-ATX Motherboards Intel
  145. let gigabytez390mgaming = new motherBoard ("Gigabyte Z390M Gaming", Vormfactor.matx, Moederboardoverclock.No, 4, Moederbordgeheugentype.DDR4, "4266MHz", Moederboardsocket.Intel, 2, 2, 6, 5, 2, 1);
  146. let asusrogstrixb360ggaming = new motherBoard ("Asus ROG Strix B360-G Gaming", Vormfactor.matx, Moederboardoverclock.No, 4, Moederbordgeheugentype.DDR4, "2666MHz", Moederboardsocket.Intel, 1, 2, 6, 6, 0, 1);
  147. //ITX Motherboards Intel
  148. let gigabyteaorusz390pro = new motherBoard ("Gigabyte Aorus I Z390 Pro", Vormfactor.itx, Moederboardoverclock.Yes, 2, Moederbordgeheugentype.DDR4, "4400MHz", Moederboardsocket.Intel, 1, 2, 4, 5, 0, 1);
  149. let asusrogstrixb360lggaming = new motherBoard ("Asus ROG Strix B360-l Gaming", Vormfactor.itx, Moederboardoverclock.No, 2, Moederbordgeheugentype.DDR4, "2666MHz", Moederboardsocket.Intel, 1, 2, 4, 4, 2, 0);
  150.  
  151. //ATX Motherboards AMD
  152. let gigabyteaorusx570elite = new motherBoard ("Gigabyte Aorus X570 ELITE", Vormfactor.atx, Moederboardoverclock.Yes, 4, Moederbordgeheugentype.DDR4, "4000MHz", Moederboardsocket.AMD, 2, 2, 6, 6, 2, 2);
  153. let asusrogstrixb450gaming = new motherBoard ("Asus ROG Strix B450-F Gaming", Vormfactor.atx, Moederboardoverclock.Yes, 4, Moederbordgeheugentype.DDR4, "3644MHz", Moederboardsocket.AMD, 2, 2, 6, 6, 2, 2);
  154. let msib450tomahawkmax = new motherBoard ("MSI B450 Tomahawk Max", Vormfactor.atx, Moederboardoverclock.Yes, 4, Moederbordgeheugentype.DDR4, "2666MHz", Moederboardsocket.AMD, 1, 1, 6, 6, 2, 2);
  155. //m-ATX Motherboards AMD
  156. let gigabyteaorusb450m = new motherBoard ("Gigabyte Aorus B450-M", Vormfactor.matx, Moederboardoverclock.Yes, 4, Moederbordgeheugentype.DDR4, "4266MHz", Moederboardsocket.AMD, 2, 2, 6, 6, 2, 1);
  157. let asusrogstrixb360gaming = new motherBoard ("Asus ROG Strix B360-G Gaming", Vormfactor.matx, Moederboardoverclock.Yes, 4, Moederbordgeheugentype.DDR4, "4400MHz", Moederboardsocket.Intel, 1, 1, 6, 6, 0, 1);
  158. // ITX Motherboards AMD
  159. let gigabyteaorusx570 = new motherBoard ("Gigabyte Aorus X570", Vormfactor.itx, Moederboardoverclock.Yes, 2, Moederbordgeheugentype.DDR4, "4400MHz", Moederboardsocket.AMD, 1, 2, 4, 5, 1, 1);
  160. let asusrogstrixb450lgaming = new motherBoard ("Asus ROG Strix B450-l Gaming", Vormfactor.itx, Moederboardoverclock.Yes, 4, Moederbordgeheugentype.DDR4, "4400MHz", Moederboardsocket.AMD, 1, 2, 4, 6, 0, 1);
  161.  
  162. //CPU
  163. class cpu {
  164. name: string;
  165. socket: CPUsocket;
  166. overclock: boolean;
  167.  
  168. constructor (strName: string, boolOc: boolean, socket: CPUsocket)
  169. {
  170. this.name = strName;
  171. this.overclock = boolOc;
  172. this.socket = socket;
  173. }
  174. };
  175.  
  176. //Intel Z390
  177. let i39350k = new cpu ("i3 9350k", true, CPUsocket.Intel);
  178. let i59600k = new cpu ("i5 9600k", true, CPUsocket.Intel);
  179. let i79700k = new cpu ("i7 9700k", true, CPUsocket.Intel);
  180. let i99900k = new cpu ("i9 9900k", true, CPUsocket.Intel);
  181.  
  182. //Intel B630
  183. let i39100f = new cpu("i3 9100f", true, CPUsocket.Intel);
  184. let i59400f = new cpu("i5 9400f", true, CPUsocket.Intel);
  185. let i79700f = new cpu("i7 9700f", true, CPUsocket.Intel);
  186.  
  187. //AMD470/570
  188. let ryzen3600x = new cpu ("Ryzen 3600x", true, CPUsocket.AMD);
  189. let ryzen2700x = new cpu ("Ryzen 2700x", true, CPUsocket.AMD);
  190. let ryzen3800x = new cpu ("Ryzen 3800x", true, CPUsocket.AMD);
  191. let ryzen3950x = new cpu ("Ryzen 3950x", true, CPUsocket.AMD);
  192.  
  193. //AMD non X(B450)
  194. let ryzen2200g = new cpu ("Ryzen 2200g", true, CPUsocket.AMD);
  195. let ryzen2600 = new cpu ("Ryzen 2600", true, CPUsocket.AMD);
  196. let ryzen3600 = new cpu ("Ryzen 3600", true, CPUsocket.AMD);
  197. let ryzen2700 = new cpu ("Ryzen 2700", true, CPUsocket.AMD);
  198.  
  199.  
  200. //Memory
  201.  
  202. class memory {
  203. name: string;
  204. memory: any;
  205. speed: any;
  206. memorySize: any;
  207. totalMemory: number;
  208.  
  209. constructor (strName: string, anyMemory: any, anySpeed: any, anyMemorySize: any, numTotalMemory: any)
  210. {
  211. this.name = strName;
  212. this.memory = anyMemory;
  213. this.speed = anySpeed;
  214. this.memorySize = anyMemorySize;
  215. this.totalMemory = numTotalMemory;
  216. }
  217. };
  218.  
  219. //8GB Memory
  220. let corsairvengeance2400 = new memory ("Corsair Vengeance2400MHz", "DDR4", "2400MHz", "2x4", 8);
  221.  
  222. //16GB Memory
  223. let gskillaegis2666 = new memory("G.Skill Aegis 2666", "DDR4", "2666MHz", "2x8", 16);
  224. let corsairvengancergb3000 = new memory("Corsair Vengeance RGB3000", "DDR4", "3000MHz", "2x8", 16);
  225. let gskilltridentz3200 = new memory("G.Skill Trident Z RGB 3200", "DDR4", "3200MHz", "2x8", 16);
  226.  
  227. //32GB Memory
  228. let gskillripjaws2666 = new memory ("G.Skill Ripjaws 2666", "DDR4", "2666MHz", "4x8", 32);
  229. let gskilltridentzrbg2666 = new memory ("G.Skill Trident Z 2666", "DDR4", "2666MHz", "4x8", 32);
  230. let gskilltridentzrgb3200 = new memory ("G.Skill Trident Z 3200", "DDR4", "3200MHz", "4x8", 32);
  231.  
  232. class gpu {
  233. brand: string;
  234. type: string;
  235. name: string;
  236. length: number;
  237. depth: number;
  238. memorySize: number;
  239.  
  240. constructor(strBrand: string, strType: string, strName: string, numLength: number, numDepth: number,
  241. numMemorySize: number) {
  242. this.brand = strBrand;
  243. this.type = strType;
  244. this.name = strName;
  245. this.length = numLength;
  246. this.depth = numDepth;
  247. this.memorySize = numMemorySize;
  248. }
  249. };
  250.  
  251. //NVidia GPU
  252. let nvidiagtx1650 = new gpu ("Inno3D", "GTX", "GTX 1650 Super (Inno3D Twin X2)", 220, 113, 4);
  253. let nvidiagtx1660 = new gpu ("PNY", "GTX", "GTX 1660 Super (PNY Dual)", 220, 113, 6);
  254. let nvidiagtx1660ti = new gpu ("PNY", "GTX", "GTX 1660ti Super (PNY Dual)", 196, 113, 6);
  255. let nvidiartx2060 = new gpu ("KFA2", "RTX", "RTX 2060 Super (KFA2)", 245, 134, 6);
  256. let nvidiartx2070 = new gpu ("KFA2", "RTX", "RTX 2070 Super(KFA2)", 295, 143, 8);
  257. let nvidiartx2080 = new gpu ("KFA2", "RTX", "RTX 2080 Super (KFA2)", 295, 143, 8);
  258. let nvidiartx2080ti = new gpu ("KFA2", "RTX", "RTX 2080ti Super (KFA2)", 268, 112, 11);
  259.  
  260. //AMD GPU
  261. let rx570 = new gpu ("XFX", "RX", "RX570 (XFX)", 243, 124, 8);
  262. let rx580 = new gpu ("Asus Dual", "RX", "RX580 (Asus Dual)", 242, 1298, 8);
  263. let rx590 = new gpu ("Sapphire Pulse", "RX", "RX590 (Sapphire Pulse)", 230, 125, 8);
  264. let rx5500xt = new gpu ("Gigabyte", "RX", "RX5500XT (Gigabyte)", 281, 115, 8);
  265. let rx5700 = new gpu ("AsRock", "RX", "RX5700 (ASRock)", 281, 126, 8);
  266. let rx5700xt = new gpu ("ASRock", "RX", "RX5700XT (ASRock)", 324, 145, 8);
  267.  
  268. class storage {
  269. name: string;
  270. type: string;
  271. size: number;
  272. capacity: number;
  273.  
  274. constructor(strName: string, strType: string, numSize: number, numCapacity: number) {
  275. this.name = strName;
  276. this.type = strType;
  277. this.size = numSize;
  278. this.capacity = numCapacity;
  279. }
  280. };
  281.  
  282. //SSD
  283. let ssd120pny = new storage ("PNY120GB", "SSD", 2.5, 120);
  284. let ssd250kingston = new storage ("Kingston250GB", "SSD", 2.5, 250);
  285. let ssd500kingston = new storage ("Kingston500GB", "SSD", 2.5, 500);
  286. let ssd1000gigabyte = new storage ("Kingston1000GB", "SSD", 2.5, 1000);
  287.  
  288. //M.2
  289. let m2120wdgreen = new storage ("WD Green 120GB", "m.2", 0, 120);
  290. let m2250wdgreen = new storage ("WD Green 250GB", "m.2", 0, 250);
  291. let m2500wdgreen = new storage ("WD Green 500GB", "m.2", 0, 500);
  292. let m21000wdgreen = new storage ("WD Blue 1000GB", "m.2", 0, 1000);
  293.  
  294. //HDD
  295. let hdd500wdblue = new storage ("WD Blue 500GB", "HDD", 3.5, 500);
  296. let hdd1000wdblue = new storage ("WD Blue 1000GB", "HDD", 3.5, 1000);
  297. let hdd2000wdblue = new storage ("WD Blue 2000GB", "HDD", 3.5, 2000);
  298. let hdd4000wdblue = new storage ("WD Blue 4000GB", "HDD", 3.5, 4000);
  299.  
  300. class psu {
  301. name: string;
  302. type: string;
  303. watt: number;
  304.  
  305. constructor (strName: string, strType: string, numWatt: number) {
  306. this.name = strName;
  307. this.type = strType;
  308. this.watt = numWatt;
  309. }
  310. };
  311.  
  312. //Corsair PSU
  313. let corsairvs450 = new psu ("Corsair VS450", "Corsair", 450);
  314. let corsairvs550 = new psu ("Corsair VS550", "Corsair", 550);
  315. let corsaircx650 = new psu ("Corsair CX650", "Corsair", 650);
  316. let corsairrm750 = new psu ("Corsair RM750", "Corsair", 750);
  317. let corsairax1000 = new psu ("Corsair AX1000", "Corsair", 1000);
  318. let corsairax1200i = new psu ("Corsair AX1200i", "Corsair", 1200);
  319.  
  320. //Seasonic PSU
  321. let seasonics12 = new psu ("Seasonic S12II-Bronze 520W", "Seasonic", 520);
  322. let seasonicm12 = new psu ("Seasonic M12II Evo 520W", "Seasonic", 520);
  323. let seasonicfocusplus = new psu ("Seasonic Focus Plus 650 Gold", "Seasonic", 650);
  324. let seasonicprimeplatinum = new psu ("Seasonic Prime Platinum 1300W", "Seasonic", 1300);
  325.  
  326. //LOG NEEDS FUNCTION
  327.  
  328. //ATX PC Cases
  329. console.log(coolermastermb520);
  330. console.log(nzxth510);
  331. console.log(corsairicue220t);
  332. console.log(fractaldesignmeshifyc);
  333. console.log(phantekseclipsep300);
  334. console.log(sharkoontg4);
  335.  
  336. //m-ATX PC Cases
  337. console.log(coolermasterq300l);
  338. console.log(nzxth400);
  339. console.log(corsaircrystal280x);
  340. console.log(fractaldesignfocusgmini);
  341. //console.log(phanteksenthooevolv);
  342. //console.log(sharkoons1000window);
  343.  
  344. //ITX PC Cases
  345. //console.log(coolermastermch100);
  346. //console.log(nzxth210);
  347. //console.log(fractaldesignnode304);
  348. console.log(phanteksenthooevolvshiftair);
  349. console.log(sharkoonsharkzonec10);
  350.  
  351.  
  352. //ATX Motherboards Intel
  353. console.log(gigabytez390gamingx);
  354. console.log(msiz390apro);
  355. console.log(asusrogstrixb360fgaming);
  356. console.log(msib360apro);
  357.  
  358. //m-ATX Motherboards Intel
  359. console.log(gigabytez390mgaming);
  360. console.log(asusrogstrixb360ggaming);
  361.  
  362. //ITX Motherboards Intel
  363. console.log(gigabyteaorusz390pro);
  364. console.log(asusrogstrixb360lggaming);
  365.  
  366. //ATX Motherboards AMD
  367. console.log(gigabyteaorusx570elite);
  368. console.log(asusrogstrixb450gaming);
  369. console.log(msib450tomahawkmax);
  370.  
  371. //m-ATX Motherboards AMD
  372. console.log(gigabyteaorusb450m);
  373. console.log(asusrogstrixb360gaming);
  374.  
  375. //ITX Motherboards AMD
  376. console.log(gigabyteaorusx570);
  377. console.log(asusrogstrixb360lggaming);
  378.  
  379.  
  380. //Intel Z390
  381. console.log(i39350k);
  382. console.log(i59600k);
  383. console.log(i79700k);
  384. console.log(i99900k);
  385.  
  386. //Intel B630
  387. console.log(i39100f);
  388. console.log(i59400f);
  389. console.log(i79700f);
  390.  
  391. //AMD470/570
  392. console.log(ryzen2700x);
  393. console.log(ryzen3600x);
  394. console.log(ryzen3800x);
  395. console.log(ryzen3950x);
  396.  
  397. //AMD non X(B450)
  398. console.log(ryzen2200g);
  399. console.log(ryzen2600);
  400. console.log(ryzen2700);
  401. console.log(ryzen3600);
  402.  
  403. //8GB Memory
  404. console.log(corsairvengeance2400);
  405.  
  406.  
  407. //16GB Memory
  408. console.log(gskillaegis2666);
  409. console.log(corsairvengancergb3000);
  410. console.log(gskilltridentz3200);
  411.  
  412. //32GB Memory
  413. console.log(gskillripjaws2666);
  414. console.log(gskilltridentzrbg2666);
  415. console.log(gskilltridentzrgb3200);
  416.  
  417.  
  418. //Nvidia GPU
  419. console.log(nvidiagtx1650);
  420. console.log(nvidiagtx1660);
  421. console.log(nvidiagtx1660ti);
  422. console.log(nvidiartx2060);
  423. console.log(nvidiartx2070);
  424. console.log(nvidiartx2080);
  425. console.log(nvidiartx2080ti);
  426.  
  427. //AMD GPU
  428. console.log(rx570);
  429. console.log(rx580);
  430. console.log(rx590);
  431. console.log(rx5500xt);
  432. console.log(rx5700);
  433. console.log(rx5700xt);
  434.  
  435. //STORAGE SSD
  436. console.log(ssd120pny);
  437. console.log(ssd250kingston);
  438. console.log(ssd500kingston);
  439. console.log(ssd1000gigabyte);
  440.  
  441. //STORAGE M.2
  442. console.log(m2120wdgreen);
  443. console.log(m2250wdgreen);
  444. console.log(m2500wdgreen);
  445. console.log(m21000wdgreen);
  446.  
  447. //STORAGE HDD
  448. console.log(hdd500wdblue);
  449. console.log(hdd1000wdblue);
  450. console.log(hdd2000wdblue);
  451. console.log(hdd4000wdblue);
  452.  
  453. //Corsair PSU
  454. console.log(corsairvs450);
  455. console.log(corsairvs550);
  456. console.log(corsaircx650);
  457. console.log(corsairrm750);
  458. console.log(corsairax1000);
  459. console.log(corsairax1200i);
  460.  
  461. //Seasonic PSU
  462. console.log(seasonics12);
  463. console.log(seasonicm12);
  464. console.log(seasonicfocusplus);
  465. console.log(seasonicprimeplatinum);
  466.  
  467. //Function if/else statement to make status true/false, eliminate false statements.
  468. function atx(pcCase:any, motherBoard:any){
  469. if(pcCase.atx === motherBoard.atx){
  470. console.log("true");
  471. }
  472. else {
  473. console.log("false");
  474. }
  475. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement