mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-09 05:44:23 +00:00
chore(kb): convert placeholders to articles
This commit is contained in:
76
knowledge base/javascript.md
Normal file
76
knowledge base/javascript.md
Normal file
@@ -0,0 +1,76 @@
|
||||
# JavaScript
|
||||
|
||||
> TODO
|
||||
|
||||
Intro
|
||||
|
||||
<!-- Remove this line to uncomment if used
|
||||
## Table of contents <!-- omit in toc -->
|
||||
|
||||
1. [TL;DR](#tldr)
|
||||
1. [Further readings](#further-readings)
|
||||
1. [Sources](#sources)
|
||||
|
||||
## TL;DR
|
||||
|
||||
<!-- Uncomment if used
|
||||
<details>
|
||||
<summary>Setup</summary>
|
||||
|
||||
```sh
|
||||
```
|
||||
|
||||
</details>
|
||||
-->
|
||||
|
||||
<!-- Uncomment if used
|
||||
<details>
|
||||
<summary>Usage</summary>
|
||||
|
||||
```sh
|
||||
```
|
||||
|
||||
</details>
|
||||
-->
|
||||
|
||||
<!-- Uncomment if used
|
||||
<details>
|
||||
<summary>Real world use cases</summary>
|
||||
|
||||
```sh
|
||||
```
|
||||
|
||||
</details>
|
||||
-->
|
||||
|
||||
```js
|
||||
let now = new Date()
|
||||
|
||||
let oneYearFromNow = new Date()
|
||||
oneYearFromNow.setDate(oneYearFromNow.getDate() + 365)
|
||||
|
||||
console.log(now.toISOString())
|
||||
console.log(oneYearFromNow.toISOString())
|
||||
```
|
||||
|
||||
## Further readings
|
||||
|
||||
- [Playcode]
|
||||
|
||||
### Sources
|
||||
|
||||
- [Documentation]
|
||||
|
||||
<!--
|
||||
Reference
|
||||
═╬═Time══
|
||||
-->
|
||||
|
||||
<!-- In-article sections -->
|
||||
<!-- Knowledge base -->
|
||||
<!-- Files -->
|
||||
<!-- Upstream -->
|
||||
[documentation]: https://developer.mozilla.org/en-US/docs/Web/JavaScript
|
||||
|
||||
<!-- Others -->
|
||||
[playcode]: https://playcode.io/empty_javascript
|
||||
Reference in New Issue
Block a user