Skip to content

Commit

Permalink
Edit: Add Codebyte to Javascript - .getUTCFullYear() (Codecademy#4209)
Browse files Browse the repository at this point in the history
* Edit: Add Codebyte to Javascript - .getUTCFullYear()

* Update content/javascript/concepts/dates/terms/getUTCFullYear/getUTCFullYear.md

* Update getUTCFullYear.md

---------
  • Loading branch information
Jamesllllllllll authored Jan 12, 2024
1 parent 1993c64 commit 8aaaf59
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,13 @@ This example results in the following output:
```shell
2023
```

## Codebyte Example

The example below is a runnable code example that defines `jsOfficialRelease` as a new Date object with the official release date of Javascript. Then, a console log using the `.getUTCFullYear()` method displays the release year:

```codebyte/javascript
const jsOfficialRelease = new Date(818035200000)
console.log(jsOfficialRelease.getUTCFullYear())
```

0 comments on commit 8aaaf59

Please sign in to comment.