diff --git a/files/en-us/web/javascript/reference/global_objects/date/getutcdate/index.md b/files/en-us/web/javascript/reference/global_objects/date/getutcdate/index.md index cb5f8d0bca74c99..680cfd0c20c2653 100644 --- a/files/en-us/web/javascript/reference/global_objects/date/getutcdate/index.md +++ b/files/en-us/web/javascript/reference/global_objects/date/getutcdate/index.md @@ -11,7 +11,7 @@ browser-compat: javascript.builtins.Date.getUTCDate --- {{JSRef}} -The **`getUTCDate()`** method returns the day of the month(from +The **`getUTCDate()`** method returns the day of the month (from 1 to 31) in the specified date according to universal time. {{EmbedInteractiveExample("pages/js/date-getutcdate.html")}} @@ -24,7 +24,7 @@ getUTCDate() ### Return value -A `number`. +A number. If the `Date` object represents a valid date, an integer number ranging from 1 to 31 representing day of month for the given date, according to universal time. Otherwise, [`NaN`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/NaN) diff --git a/files/en-us/web/javascript/reference/global_objects/date/getutcday/index.md b/files/en-us/web/javascript/reference/global_objects/date/getutcday/index.md index e6a3ef6e7c1d210..d28c58f6438cb6d 100644 --- a/files/en-us/web/javascript/reference/global_objects/date/getutcday/index.md +++ b/files/en-us/web/javascript/reference/global_objects/date/getutcday/index.md @@ -24,7 +24,7 @@ getUTCDay() ### Return value -A `number`. +A number. If the `Date` object represents a valid date, an integer number corresponding to the day of the week for the given date, according to universal time: 0 for Sunday, 1 for Monday, 2 for Tuesday, and so on. diff --git a/files/en-us/web/javascript/reference/global_objects/date/getutcfullyear/index.md b/files/en-us/web/javascript/reference/global_objects/date/getutcfullyear/index.md index e27538eba077ccb..d9a7365f8ae2b44 100644 --- a/files/en-us/web/javascript/reference/global_objects/date/getutcfullyear/index.md +++ b/files/en-us/web/javascript/reference/global_objects/date/getutcfullyear/index.md @@ -24,7 +24,7 @@ getUTCFullYear() ### Return value -A `number`. +A number. If the `Date` object represents a valid date, an integer representing the year in the given date according to universal time. Otherwise, [`NaN`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/NaN) diff --git a/files/en-us/web/javascript/reference/global_objects/date/getutchours/index.md b/files/en-us/web/javascript/reference/global_objects/date/getutchours/index.md index 9c3792ae0c9d06f..00750fde8241faf 100644 --- a/files/en-us/web/javascript/reference/global_objects/date/getutchours/index.md +++ b/files/en-us/web/javascript/reference/global_objects/date/getutchours/index.md @@ -24,7 +24,7 @@ getUTCHours() ### Return value -A `number`. +A number. If the `Date` object represents a valid date, an integer between 0 and 23, representing the hours in the given date according to Coordinated Universal Time. Otherwise, [`NaN`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/NaN) diff --git a/files/en-us/web/javascript/reference/global_objects/date/getutcmilliseconds/index.md b/files/en-us/web/javascript/reference/global_objects/date/getutcmilliseconds/index.md index b76414ee89161ae..6bac809769dd589 100644 --- a/files/en-us/web/javascript/reference/global_objects/date/getutcmilliseconds/index.md +++ b/files/en-us/web/javascript/reference/global_objects/date/getutcmilliseconds/index.md @@ -24,7 +24,7 @@ getUTCMilliseconds() ### Return value -A `number`. +A number. If the `Date` object represents a valid date, an integer between 0 and 999, representing the milliseconds portion of the given `Date` object according to universal time. Otherwise, [`NaN`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/NaN) diff --git a/files/en-us/web/javascript/reference/global_objects/date/getutcminutes/index.md b/files/en-us/web/javascript/reference/global_objects/date/getutcminutes/index.md index ddec9297dead7cb..d46fbddafe6e916 100644 --- a/files/en-us/web/javascript/reference/global_objects/date/getutcminutes/index.md +++ b/files/en-us/web/javascript/reference/global_objects/date/getutcminutes/index.md @@ -24,7 +24,7 @@ getUTCMinutes() ### Return value -A `number`. +A number. If the `Date` object represents a valid date, an integer between 0 and 59, representing the minutes in the given date according to universal time. Otherwise, [`NaN`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/NaN) diff --git a/files/en-us/web/javascript/reference/global_objects/date/getutcmonth/index.md b/files/en-us/web/javascript/reference/global_objects/date/getutcmonth/index.md index 6f300c62ece1e09..1343250857b23e6 100644 --- a/files/en-us/web/javascript/reference/global_objects/date/getutcmonth/index.md +++ b/files/en-us/web/javascript/reference/global_objects/date/getutcmonth/index.md @@ -25,7 +25,7 @@ getUTCMonth() ### Return value -A `number`. If the `Date` object represents a valid date, an integer number, between 0 and 11, +A number. If the `Date` object represents a valid date, an integer number, between 0 and 11, corresponding to the month of the given date according to universal time. 0 for January, 1 for February, 2 for March, and so on. Otherwise, [`NaN`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/NaN) if the `Date` object doesn't represent a valid date. diff --git a/files/en-us/web/javascript/reference/global_objects/date/getutcseconds/index.md b/files/en-us/web/javascript/reference/global_objects/date/getutcseconds/index.md index 7901ea036bc5686..30d3c3eeb6c703a 100644 --- a/files/en-us/web/javascript/reference/global_objects/date/getutcseconds/index.md +++ b/files/en-us/web/javascript/reference/global_objects/date/getutcseconds/index.md @@ -24,7 +24,7 @@ getUTCSeconds() ### Return value -A `number`. +A number. If the `Date` object represents a valid date, an integer between 0 and 59, representing the seconds in the given date according to universal time. Otherwise, [`NaN`](/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/NaN) diff --git a/files/en-us/web/javascript/reference/global_objects/function/arguments/index.md b/files/en-us/web/javascript/reference/global_objects/function/arguments/index.md index dec8a7ed3a806cf..edb1ed8a18ad3c7 100644 --- a/files/en-us/web/javascript/reference/global_objects/function/arguments/index.md +++ b/files/en-us/web/javascript/reference/global_objects/function/arguments/index.md @@ -13,7 +13,7 @@ browser-compat: javascript.builtins.Function.arguments {{JSRef}}{{Deprecated_Header}}{{Non-standard_Header}} -> **Warning:** The `arguments` property of {{jsxref("Function")}} objects is deprecated. The recommended way to access the `arguments` object is to refer to the variable {{jsxref("Functions/arguments", "arguments")}} available within functions. +> **Note:** The `arguments` property of {{jsxref("Function")}} objects is deprecated. The recommended way to access the `arguments` object is to refer to the variable {{jsxref("Functions/arguments", "arguments")}} available within functions. The **`arguments`** accessor property represents the arguments passed to a {{jsxref("Function")}} object. For [strict](/en-US/docs/Web/JavaScript/Reference/Strict_mode), async function, and generator function callers, accessing the `arguments` property throws an exception. @@ -23,7 +23,7 @@ The value of `arguments` is an array-like object corresponding to the arguments In the case of recursion, i.e. if function `f` appears several times on the call stack, the value of `f.arguments` represents the arguments corresponding to the most recent invocation of the function. -The value of the arguments property is normally {{jsxref("Operators/null", "null")}} if there is no outstanding invocation of the function in progress (that is, the function has been called but has not yet returned. +The value of the `arguments` property is normally {{jsxref("Operators/null", "null")}} if there is no outstanding invocation of the function in progress (that is, the function has been called but has not yet returned). Note that the only behavior specified by the ECMAScript specification is that `Function.prototype` has an initial `arguments` accessor that unconditionally throws a {{jsxref("TypeError")}} for any `get` or `set` request (known as a "poison pill accessor"), and that implementations are not allowed to change this semantic for any function except non-strict plain functions. The actual behavior of the `arguments` property, if it's anything other than throwing an error, is implementation-defined. For example, Chrome defines it as an own data property, while Firefox and Safari extend the initial poison-pill `Function.prototype.arguments` accessor to specially handle `this` values that are non-strict functions.