forked from sbarex/SourceCodeSyntaxHighlight
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.js
More file actions
31 lines (28 loc) · 765 Bytes
/
Copy pathexample.js
File metadata and controls
31 lines (28 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// JS Example file
var globalVar;
/**
* Constructor for <code>AjaxRequest</code> class
* @param url the url for the request<p/>
*/
function AjaxRequest(url) {
function local() {}
var urls = [ "www.cnn.com", 5, globalVar];
this.request = new XMLHttpRequest();
url = url.replace(/^\s*(.*)/, "$1"); // skip leading whitespace
/* check the url to be in urls */
var a = "\u1111\z\n\u11";
this.foo = new function() {};
foo();
#
var hello = () => console.log("hello")}
@decorator()
class NameClass {
}
declare module name{
declare export var exportedVar: string;
declare export function exportedFunction(): void;
declare export class ExportedClass {}
}
interface MyInterface { }
type FooBarAlias = string;
var x: MyInterface, y: string, z: FooBarAlias;