const first = "browser"
const second = "usability";
console.log(first[5] + second[5] + second[3] + first[first.length -1] + second[0] + first[4])
const users = [
{ id: 1, name: "Иван" },
{ id: 2, name: "Анна" },
{ id: 3, name: "Пётр" }
];
function readUser(users, id) {
return users.find(user => user.id === id);
}
console.log(readUser(users, 3));
Code will run automatically after changes.
Code runs in an isolated environment.
Code runs in an isolated environment.