You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
831 B
JavaScript
34 lines
831 B
JavaScript
var globalVar;
|
|
|
|
/**
|
|
* Constructor for AjaxRequest class
|
|
* @param {string} 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 html =`<div title='HTML injection'>Injected language fragment</div>`;
|
|
var x: MyInterface, y: string, z: FooBarAlias;
|