Trường · Octal
Trường · Octal · string.octal. Phương thức tạo · Ví dụ
string.octal
Cài đặt trình tạo
Tạo dữ liệu để xem kết quả ở đây.
Tham số & Ví dụ
Returns an octal string.
string.octal(options?: { length?, prefix? })- options
- The optional options object.
- options.length
- The length of the string (excluding the prefix) to generate either as a fixed length or as a length range. Defaults to 1.
- options.prefix
- Prefix for the generated number. Defaults to '0o'.
Ví dụ
"0o5"Dùng dữ liệu tổng hợp trong môi trường kiểm thử.