This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To follow along using VSCode, copy/paste this code into | |
// a TS file (using TS 4.8.2+), and enable the VSCode | |
// js/ts.implicitProjectConfig.strictNullChecks setting | |
const obj = { | |
nested: { | |
prop1: 1, | |
prop2: 'a', | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Module dependencies | |
var express = require('express'), | |
mysql = require('mysql'); | |
// Application initialization | |
var connection = mysql.createConnection({ | |
host : 'localhost', | |
user : 'root', |