javascript array methods concat() on January 08, 2022 Get link Facebook X Pinterest Email Other Apps javascript array methods concat() Html part <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>new</title> </head> <style> body{ width: 400px; height: 400px; background-color: #333; color: #fff; margin-left: 100px; margin-top: 50px; } </style> <body> <h1>javascript array methods concat() </h1> <h2 id="start"> <script> let num = ["1","2","3","4"]; let name = ["samir","amir", "ram","sita"]; const info = num.concat(name); document.getElementById ("start").innerText = info; </script> </h2> </body> </html> Comments
Comments
Post a Comment