Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

투드리스트 조영은 뼈대 완성 #27

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions codingTest_jye/.vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"ExpandedNodes": [
""
],
"PreviewInSolutionExplorer": false
}
Binary file added codingTest_jye/.vs/codingTest_jye/v16/.suo
Binary file not shown.
Binary file added codingTest_jye/.vs/slnx.sqlite
Binary file not shown.
2 changes: 1 addition & 1 deletion codingTest_jye/JYECalculator.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ function main() {
let msg = document.getElementById("msg").value;

if (exit(msg)) {
window.close();
} else {
msg = noSpacing(msg);
if (judgeError(msg)) {
Expand All @@ -24,7 +25,6 @@ function exit(msg) {
if (msg === "exit") {
if (confirm("정말로 종료하시겠습니까?")) {
alert("종료됨 수고요");
window.close();
return true;
} else {
alert("종료되지 않았습니다.");
Expand Down
27 changes: 27 additions & 0 deletions codingTest_jye/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
class Car {
constructor(color) {
this.color = color;
this.wheels = 4;
}

drive() {
console.log("drive..");
}
stop() {
console.log("STOP!");
}
}

class Bmw extends Car {
//추가됨
constructor(...args) {
super(...args);
} //추가됨
park() {
console.log("PARK");
}
}

const z4 = new Bmw("blue");
//constructor가 없으면 consturctor가 있는것처럼(저 부분이 있는것처럼) 실행됨
//그러니까 자식 생성자는 무조건 부모 생성자를 호출해야만함!!!!!!!!!!!!!!!
2 changes: 2 additions & 0 deletions codingTest_jye/todolist/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
**node_modules
**env
1 change: 1 addition & 0 deletions codingTest_jye/todolist/LICENCE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MY BRAIN
27 changes: 27 additions & 0 deletions codingTest_jye/todolist/app/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import express from "express";
import dotenv from "dotenv";
import home from "./src/routes/home/index.js";
import { fileURLToPath } from "url";
import bodyParser from "body-parser";
import cors from "cors";
const __dirname = fileURLToPath(new URL(".", import.meta.url));

const app = express();

dotenv.config();

app.set("views", "./src/views");
app.set("view engine", "ejs");
app.use(express.static(`${__dirname}/src/public`));

app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: true }));
app.use(
cors({
origin: "*",
})
);

app.use("/", home);

export default app;
8 changes: 8 additions & 0 deletions codingTest_jye/todolist/app/bin/www.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import app from "../app.js";
("user strict");

const PORT = process.env.PORT || 3000;

app.listen(PORT, () => {
console.log(`${PORT}번 포트에서 서버가 가동됐습니다.`);
});
Loading