catppuccin/samples/javascript.js
2023-09-22 02:22:30 +02:00

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()
}