Значит ли это, что с ее помощью можно разработать проект полностью на JS, как фронт так и бэк?
Может ли Node.js заменить PHP?
string = """
qwe*qwe
asd*asd
zxc*zxc
"""
print("\n".join(string.splitlines()[1:-1]))
print("----------------------------------")
print("\n".join(string.splitlines()[1:-2]))
https://ideone.com/nP5Ty2 const escapeKeycode = 27;
const enterKeycode = 13;
window.alert = function() {
debugger;
}
$('.break-word').html((i, html) => {
const [ a, b, c ] = html.split(' ');
return `${a} ${b}<br>${c}`;
});
document.querySelectorAll('.break-word').forEach(n => {
n.innerHTML = n.innerText.replace(/(.+ .+) /, '$1<br>');
});