vd1
RUN
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <p>Click vào button để nối 2 mảng lại với nhau.</p> <button onclick="myFunction()">Nối</button> <p id="demo"></p> <script> function myFunction() { var projec1 = ["PHP", "CSS"]; var projec2 = ["HTML", "Python", "JS"]; var children = projec1.concat(projec2); document.getElementById("demo").innerHTML = children; } </script> </body> </html>
PHÓNG TO