xycu2.rar
52 subscribers
87 photos
6 videos
12 links
Download Telegram
Undertale 2 вышел в steam!!!!
3
const SumNumbers = (a, b) => {
if (typeof a !== 'number' || typeof b !== 'number') {
return "a and b не числа!"
}

if (a <= 0 || b <= 0) {
return "Неприемливые числа"
}

return a + b
}

let sum = SumNumbers(55, 5)
console.log(sum)
1🔥1
Forwarded from КосмоНавт (KosmoNavt.cpp)
Please open Telegram to view this post
VIEW IN TELEGRAM
🥰21
const myObject = {
x: 12,
y: true,
z: 'hi'
}

Object.values(myObject).forEach(values => {
console.log(values)
})

const myObject = {
x: 12,
y: true,
z: 'hi'
}

Object.keys(myObject).forEach(keys => {
console.log(keys)
})

Методы keys и values для объектов
🔥2🤔1
Начал изучать классы и прототипы
class Comment {
constructor(text) {
this.text = text
this.votesQty = 0
}

upvote() {
this.votesQty += 1
}
}

const firstComment = new Comment('First comment')
1👍1🔥1🥰1
Лучший
4
Forwarded from kaleos.p
🔫Требования на Джуна, 2025 год, IT-рынок:

Подписаться
Please open Telegram to view this post
VIEW IN TELEGRAM
🤔31🤨1
Что выведет данный код?
Anonymous Quiz
25%
true
25%
false
15%
undefined
35%
null
fetch('https://jsonplaceholder.typicode.com/posts')
.then((response) => response.json())
.then((json) => console.log(json));
на самом деле , 'Промисы' мне больше понятны , чем 'классы и прототипы' !
const timerPromise = () =>
new Promise((resolve, reject) =>
setTimeout(() => resolve(), 2000))

const asyncFn = async () => {
console.log('Timer starts')
const startTime = performance.now()
await timerPromise()
const endTime = performance.now()
console.log('Timer ended', endTime - startTime)
}

asyncFn()
нормально так
3
красиво то как
1
Стоит проходить? как вы думаете
2
Стоит ли пройти курс по GoLang?
Final Results
63%
Да
25%
Нет
13%
Как хочешь