تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["The `abs()` function calculates the absolute value of each element in an input array."],["It accepts an array as input and returns a new array with the absolute values of the original elements."],["The function works on arrays of any dimensions, including nested arrays."],["Both JavaScript and Python APIs support the `abs()` function."]]],["The `abs()` function computes the absolute value of each element in an input array. It takes an array as input (`this: input`) and returns a new array. The function operates element-wise, transforming negative values to their positive counterparts while leaving non-negative values unchanged. Examples show its use in JavaScript and Python, demonstrating its application to one-dimensional and two-dimensional arrays. In both cases it is used by the `.abs()` at the end of the array.\n"]]