This file contains 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 fs = require('fs'); | |
//We are creating functions so that we can call them in one line for seperate objects and functions to use | |
var fetchNotes = () => { | |
try { | |
var notesString = fs.readFileSync('notes-data.json'); | |
return JSON.parse(notesString); | |
} catch (e) { | |
return [];// This happens when try is an error so there is now smth to catch. | |
} | |
}; |
This file contains 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
/* Creating the table */ | |
CREATE TABLE Test1( | |
IntDatatype INT(5)PRIMARY KEY, | |
VarcharDatatype VARCHAR(15) NOT NULL, | |
DateDatatype DATE, | |
FloatDatatype FLOAT(7,2), | |
DoubleDatatype DOUBLE(15,8), | |
DatetimeDatatype DATETIME | |
); |
This file contains 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
#include <stdio.h> | |
#include <string.h> | |
#include <conio.h> | |
struct Table { | |
char occupation_title[50]; | |
int employee_number; | |
float mean_hourwage, annual_meanwage; | |
}; | |
/*All Sort function sorted in Ascending Order. |
NewerOlder