nodeschool.io 4】的更多相关文章

~~ MY FIRST ASYNC I/O! ~~ Write a program that uses a single asynchronous filesystem operationto read a file and print the number of newlines it contains to theconsole (stdout), similar to running `cat file | wc -l`. The full path to the file to read…
~~ MY FIRST I/O! ~~ Write a program that uses a single synchronous filesystem operation toread a file and print the number of newlines it contains to theconsole (stdout), similar to running `cat file | wc -l`. The full path to the file to read will b…
~~  BABY STEPS  ~~ Write a program that accepts one or more numbers as command-line arguments and prints the sum of those numbers to the console (stdout). ----------------------------------------------------------------------HINTS: You can access com…
~~ TIME SERVER ~~ Write a TCP time server! Your server should listen to TCP connections on port 8000. For eachconnection you must write the current date & time in the format: YYYY-MM-DD hh:mm followed by a newline character. Month, day, hour and minu…
~~ JUGGLING ASYNC ~~ 其实就是一个循环,在循环里面输出的顺序,和排列后在外面的顺序不一样,这是为什么呢? 用第三方async包,直接报错了…… This problem is the same as the previous problem (HTTP COLLECT) inthat you need to use `http.get()`. However, this time you will beprovided with three URLs as the first…
~~ HTTP COLLECT ~~ Write a program that performs an HTTP GET request to a URL provided toyou as the first command-line argument. Collect all data from theserver (not just the first "data" event) and then write two lines tothe console (stdout). T…
~~ HTTP CLIENT ~~ Write a program that performs an HTTP GET request to a URL provided toyou as the first command-line argument. Write the String contents ofeach "data" event from the response to a new line on the console(stdout). ---------------…
~~ MAKE IT MODULAR ~~ This problem is the same as the previous but introduces the concept ofmodules. You will need to create two files to solve this. Create a program that prints a list of files in a given directory,filtered by the extension of the f…
~~ FILTERED LS ~~ Create a program that prints a list of files in a given directory,filtered by the extension of the files. You will be provided adirectory name as the first argument to your program (e.g.'/path/to/dir/') and a file extension to filte…
来源:https://nodeschool.io/zh-cn/ 核心基础课程(Core) javascripting 学习 JavaScript 语言的基础,无需任何编程经验 npm install -g javascripting git-it 学习 Git 和 GitHub 的基本操作. npm install -g git-it Scope Chains & Closures 学习作用域,作用域链,闭包和垃圾回收机制的细节. npm install -g scope-chains-clos…