mirror of
https://github.com/catppuccin/catppuccin
synced 2024-11-29 06:50:32 +00:00
37 lines
763 B
JavaScript
37 lines
763 B
JavaScript
var globalVar
|
|
/**
|
|
* Constructor for <code>AjaxRequest</code> class
|
|
* @param url the url for the request<p/>
|
|
*/
|
|
function AjaxRequest(url) {
|
|
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 = '\u1111z\n\u11ac'
|
|
this.foo = new (function () {})()
|
|
let a = true && false
|
|
foo()
|
|
// #
|
|
const cons = 'abc'
|
|
let a = true
|
|
console.log(cons)
|
|
}
|
|
let myObj = {
|
|
first: 'first',
|
|
second: 3,
|
|
o: {
|
|
hello: 'world',
|
|
},
|
|
}
|
|
|
|
typeof 'nice'
|
|
new Class()
|
|
class NameClass {}
|
|
foo({ abc: 'abcde' })
|
|
foo.bar({ foo: 'abc' })
|
|
obj.abc = function () {}
|
|
|
|
;async () => {
|
|
await Promise.resolve()
|
|
}
|