SDN301m_-_FA_2023_-_RE_-_395_1118.webp
B

SDN301m_-_FA_2023_-_RE_-_395_1118.webp

nark: 1
Total Marks: 50
(14)
Vol 8
Font: Microsoft Sans Serif
Size: 10
Time Left:57:11
Multiple Choices
(Choose 1 answer)
What does the code shown below do?
const fs = require('fs'); const os = require('os');
const system = os.platform(); const user = os.userInfo().username;
fs.appendFile('hello.txt', 'Hello ${user} on ${system}', (err) => { if (err) throw err; console.log('The data was appended to file!');}
);
A. Creates a text file hello.txt and appends customized text
B. Creates a file named data and append numbers
C. Console logs system information
D. Creates an image file


Thông tin

Category
SDN301m
Thêm bởi
bright_peace
Ngày thêm
Lượt xem
665
Lượt bình luận
4
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
SDN301m_-_FA_2023_-_RE_-_395_1118.webp
File size
59.9 KB
Dimensions
1542px x 770px

Share this media

Back
Bên trên Bottom