catppuccin/samples/javascript.js

38 lines
763 B
JavaScript
Raw Normal View History

2023-09-22 00:22:30 +00:00
var globalVar
/**
2023-09-22 00:22:30 +00:00
* Constructor for <code>AjaxRequest</code> class
* @param url the url for the request<p/>
*/
function AjaxRequest(url) {
2023-09-22 00:22:30 +00:00
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)
}
2023-09-22 00:22:30 +00:00
let myObj = {
first: 'first',
second: 3,
o: {
hello: 'world',
},
}
2023-09-22 00:22:30 +00:00
typeof 'nice'
new Class()
class NameClass {}
foo({ abc: 'abcde' })
foo.bar({ foo: 'abc' })
obj.abc = function () {}
2023-09-22 00:22:30 +00:00
;async () => {
await Promise.resolve()
}