GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing raw.githubusercontent.com — raw.githubusercontent.com # Creation
You can define strings in JavaScript by enclosing the text in single quotes or double quotes:
```js
// Single quotes can be used
var str = 'Our lovely string';
// Double quotes as well
var otherStr = "Another nice string";
```
In Javascript, Strings can contain UTF-8 characters:
```js
"中文 español English हिन्दी العربية português বাংলা русский 日本語 ਪੰਜਾਬੀ 한국어";
```
**Note:** Strings can not be subtracted, multiplied or divided.
---
Create a variable named `str` set to the value `"abc"`.
```js
```
```js
var str = 'abc';
```
```js
assert(str === 'abc');
```
---
|
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |