Q:

Write a JavaScript exercise to create a variable using a user-defined name

0

Write a JavaScript exercise to create a variable using a user-defined name.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

var var_name = 'abcd';
var n = 120;
this[var_name] = n;
console.log(this[var_name])

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now