Avatar of Mac Cruz
Mac Cruz
 asked on

How to join two arrayss?

How to join two const variables?

const p_data = [{type: 'text', value: 'Erwin', style: 'text-align:center;font-size:19px; font'}]
const s_data = [{type: 'text', value: 'John', style: 'text-align:center;font-size:14px;'}];
I tried this but it didn't work.. Any help please!
p_data += s_data
HTMLJavaScript

Avatar of undefined
Last Comment
Mac Cruz

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
leakim971

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Mac Cruz

ASKER
Thank you leakim971, its working.. I also used concat this would have the same result with the "push". Thank you!
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck