Toggle navigation
Toggle navigation
This project
Loading...
Sign in
손희승
/
OSS
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Authored by
Dexter Jin
2019-04-17 20:53:08 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
614c07bbed6abadc4bc4f3747655d1b35e07856e
614c07bb
1 parent
6aa74585
Experiments07 Materials Updated
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletions
Experiments/experiments07/assignment01/assignment01.js
Experiments/experiments07/assignment02/assignment02.js
Experiments/experiments07/assignment03/assignment03.js
Experiments/experiments07/assignment01/assignment01.js
View file @
614c07b
...
...
@@ -11,5 +11,8 @@ var bookList = new Array(new book("Perl1", "Mohtashim"),new book("Smith", "Mohta
console
.
log
(
bookList
);
console
.
log
(
"After Sorting"
);
//bookList.sort(sortBook);
bookList
.
sort
(
sortBook
);
// sortBook 이라는 comparing function을 완성하시오.
// 1 순위 : title
// 2 순위 : author
console
.
log
(
bookList
);
...
...
Experiments/experiments07/assignment02/assignment02.js
View file @
614c07b
...
...
@@ -3,5 +3,9 @@ function slice(str, start, end) {
}
var
str
=
"Apples are round, and apples are juicy."
;
var
sliced
=
str
.
slice
(
1
,
3
);
// String.slice method와 동일하게 동작하는 slice function을 구현하시오.
// 아래의 console.log 2개의 출력이 동일해야 함
console
.
log
(
sliced
);
console
.
log
(
slice
(
str
,
1
,
3
));
...
...
Experiments/experiments07/assignment03/assignment03.js
View file @
614c07b
...
...
@@ -2,5 +2,9 @@ function reverse (input) {
}
var
arr
=
[
0
,
1
,
2
,
3
];
// Array.reverse Method와 동일하게 동작하는 reverse function을 구현하시오.
// 아래의 console.log 2개의 출력이 동일해야 함
console
.
log
(
"Reversed array is : "
+
arr
.
reverse
()
);
console
.
log
(
"Reversed array is : "
+
reverse
(
arr
));
...
...
Please
register
or
login
to post a comment