TGViewer
JavaScript test JavaScript test @js_test · 9.67K subscribers
Post #4687 907
❓Что будет на выходе?

function verify(username){
return /^[a-z][a-z0-9_]{5,15}$/i.test(username);
}
console.log( verify("myjinxin2015"))
console.log( verify("smile67"))
console.log( verify("GiacomoSorbi"))
console.log( verify("jhoffner"))
console.log( verify("g964") )
console.log( verify("matt c") ) /
console.log( verify("My_name_is_ZozoFouchtra") )


Ответ:
true
true
true
true
false
false
false


JavaScript test | #JavaScript
More from @js_test
  1. Oct 17, 2026❗️Что будет на выходе: function task1() { console.log('A'); setTimeout(() => console.log('…
  2. Oct 17, 2026❗️Что будет на выходе: function greet(name) { return `Hello, ${name}!`; } function highlig…
  3. Oct 17, 2026❗️Что будет на выходе: const counter = (function () { let count = 0; const history = []; r…
  4. Oct 16, 2026❗️Что будет на выходе: const memoryLeak = () => { const cache = new Map(); const weakCache…
  5. Oct 16, 2026❗️Что будет на выходе: const createMathOps = (base) => { return { add: (x) => base + x, mu…
  6. Oct 16, 2026❗️Что будет на выходе: const person = { name: 'Alice', greet() { return `Hello, I'm ${this…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →