Computer programming is the process of designing and building an executable computer program for accomplishing specific computing task. Programming involves tasks such as: analysis, generating algorithms, profiling algorithms' accuracy and resource consumption, and the implementation of algorithms in a chosen programming language (commonly referred to as coding). The source code of a program is written in one or more languages that are intelligible to programmers, rather than machine code, which is directly executed by the central processing unit. The purpose of programming is to find a sequence of instructions that will automate the performance of a task (which can be as complex as an operating system) on a computer, often for solving a given problem. The process of programming thus often requires expertise in several different subjects, including knowledge of the application domain, specialized algorithms, and formal logic.Tasks accompanying and related to programming include: testing, debugging, source code maintenance, implementation of build systems, and management of derived artifacts, such as the machine code of computer programs. These might be considered part of the programming process, but often the term software development is used for this larger process with the term programming, implementation, or coding reserved for the actual writing of code. Software engineering combines engineering techniques with software development practices. Reverse engineering is the opposite process. A hacker is any skilled computer expert that uses their technical knowledge to overcome a problem, but it can also mean a security hacker in common language.
8/28/2019
About this Documentation | Node.js v8.16.1 Documentation
https://nodejs.org/docs/latest-v8.x/api/all.html
1/1014
Index View on single page View as JSON
About this Documentation
Contributing
Stability Index
JSON Output
Syscalls and man pages
Usage
Example
Assert
Strict mode
Legacy mode deprecated
assert(value[, message])
assert.deepEqual(actual, expected[, message])
assert.deepStrictEqual(actual, expected[, message])
Comparison details
assert.doesNotReject(block[, error][, message])
assert.doesNotThrow(block[, error][, message])
assert.equal(actual, expected[, message])
assert.fail(message)
assert.fail(actual, expected[, message[, operator[, stackStartFunction]]])
assert.ifError(value)
assert.notDeepEqual(actual, expected[, message])
assert.notDeepStrictEqual(actual, expected[, message])
assert.notEqual(actual, expected[, message])
assert.notStrictEqual(actual, expected[, message])
assert.ok(value[, message])
assert.strictEqual(actual, expected[, message])
assert.rejects(block[, error][, message])
Node.js v8.16.1 Documentation
View another version ▼
Table of Contents
8/28/2019
About this Documentation | Node.js v8.16.1 Documentation
https://nodejs.org/docs/latest-v8.x/api/all.html
2/1014
assert.throws(block[, error][, message])
Caveats
Async Hooks
Terminology
Public API
Overview
async_hooks.createHook(callbacks)
Error Handling
Printing in AsyncHooks callbacks
asyncHook.enable()
asyncHook.disable()
Hook Callbacks
init(asyncId, type, triggerAsyncId, resource)
type
triggerId
resource
Asynchronous context example
before(asyncId)
after(asyncId)
destroy(asyncId)
promiseResolve(asyncId)
async_hooks.executionAsyncId()
async_hooks.triggerAsyncId()
Promise execution tracking
JavaScript Embedder API
class AsyncResource()
AsyncResource(type[, options])
asyncResource.runInAsyncScope(fn[, thisArg, ...args])
asyncResource.emitBefore() deprecated
asyncResource.emitAfter() deprecated
8/28/2019
About this Documentation | Node.js v8.16.1 Documentation
https://nodejs.org/docs/latest-v8.x/api/all.html
3/1014
asyncResourc