Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Avoid using 'name' as a global identifier.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielRosenwasser committed Apr 16, 2016
1 parent 330c41e commit 5cf66a1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pages/Basic Types.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ As in other languages, we use the type `string` to refer to these textual dataty
Just like JavaScript, TypeScript also uses the double quote (`"`) or single quote (`'`) to surround string data.

```ts
let name: string = "bob";
name = 'smith';
let color: string = "blue";
name = 'red';
```

You can also use *template strings*, which can span multiple lines and have embedded expressions.
These strings are surrounded by the backtick/backquote (`` ` ``) character, and embedded expressions are of the form `${ expr }`
These strings are surrounded by the backtick/backquote (`` ` ``) character, and embedded expressions are of the form `${ expr }`.

```ts
let name: string = `Gene`;
let fullName: string = `Bob Bobbington`;
let age: number = 37;
let sentence: string = `Hello, my name is ${ name }.
Expand Down

0 comments on commit 5cf66a1

Please sign in to comment.