소스 검색

Add Todo and Notes

Signed-off-by: Michael Tang <michael.h.tang@gmail.com>
Michael Tang 5 년 전
커밋
70152e5651
2개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      notes.js
  2. 6 0
      todo.js

+ 4 - 0
notes.js

@@ -0,0 +1,4 @@
+const notes = ['Note 1', 'Note 2', 'Note 3']
+
+console.log(notes.length)
+console.log(notes[notes.length - 2])

+ 6 - 0
todo.js

@@ -0,0 +1,6 @@
+const todo = ['Call with Jon', "Return Mom's trimmer", 'Get Insurance', 'Register for wcb', 'Wake up for christmas']
+
+console.log(`You have ${todo.length} todos.`)
+
+console.log(todo[0])
+console.log(todo[todo.length - 1])