Toggle navigation
Toggle navigation
This project
Loading...
Sign in
신정아
/
weather_chatbot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
1
Network
Create a new issue
Commits
Issue Boards
Authored by
swjin
2019-10-25 11:48:50 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7283f9fa3fccbd4c46e7f1fff935966f34f33669
7283f9fa
1 parent
d77f7f68
Experiment7 Updated
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
Experiments/experiments07/assignment01/assignment01.js
Experiments/experiments07/assignment01/assignment01.js
View file @
7283f9f
function
addPrice
(
amount
)
{
function
addPrice
(
amount
)
{
this
.
price
=
amount
;
}
function
book
(
title
,
author
)
{
...
...
@@ -13,6 +13,7 @@ console.log(bookList);
console
.
log
(
"After Sorting"
);
bookList
.
sort
(
sortBook
);
// sortBook 이라는 comparing function을 완성하시오.
// sortBook(a, b) { if (a > b) return 1; else if (a < b) return -1; else return 0;
// 1 순위 : title
// 2 순위 : author
console
.
log
(
bookList
);
...
...
Please
register
or
login
to post a comment