Skip to content

Latest commit

 

History

History
76 lines (60 loc) · 928 Bytes

syntax-preview.md

File metadata and controls

76 lines (60 loc) · 928 Bytes

README

This is Markdown

And it is super simple!

HTML

<!DOCTYPE html>
<html lang="en" dir="ltr">
  <head>
    <meta charset="utf-8">
    <title>Developer's Syntax</title>
  </head>
  <body>
    <p>Hello world!</p>
  </body>
</html>

CSS

@media screen and (max-width: 20em) {
  body {
    font-size: 1.25em;
    color: unknown;
    background-color: white;
    unknown: property;
  }
}

JavaScript

function functionName() {

  const newThing = {};

  for (var variable in thing) {
    if (thing.hasOwnProperty(variable)) {
      newThing[variable] = thing[variable];
    }
  }

  return newThing;
}

const arrowFunction = () => {
  return {};
}

JSON

{
  "stringKey": "value",
  "booleanKey": true,
  "nullKey": null,
  "arrayKey": [
    "value 1",
    {
      "key": "value"
    },
    ["arrayInArray"]
  ],
  "objectKey": {
    "key": "value"
  }
}