Skip to content

Commit

Permalink
Fix typos (mdn#20320)
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena authored Sep 5, 2022
1 parent 3982546 commit 645dcca
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")}}
Expand All @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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.

Expand Down

0 comments on commit 645dcca

Please sign in to comment.