Complete the code to output "name is age years old", where name and age are the declared variable values. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 4

Complete the code to output "name is age years old", where name and age are the declared variable values.

name = "James" age = "42"

27th May 2021, 5:14 AM
aryan kumar
aryan kumar - avatar
5 Answers
+ 2
You can use this format console.log(`${name} is ${age} years old`) code - https://code.sololearn.com/cO8XAX0DmpWG/?ref=app
27th May 2021, 5:32 AM
Abhiyantā
Abhiyantā - avatar
+ 1
If you already knew, then don't ask..!! If you don't know and asking to clear your doubts..then first show us your attempt...!!
27th May 2021, 5:28 AM
sarada lakshmi
sarada lakshmi - avatar
+ 1
You haven't included language name in tags, code link Next time, frame your question properly. Here's guide : https://www.sololearn.com/post/488985/?ref=app
27th May 2021, 7:34 AM
AKSHAY🇮🇳
AKSHAY🇮🇳 - avatar
0
thanks
27th May 2021, 5:54 AM
aryan kumar
aryan kumar - avatar
0
Rearrange to generate the following output Name: James Age: 27
20th Mar 2023, 5:54 AM
Fernandus Loise Figo
Fernandus Loise Figo - avatar