Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Arrow function + template string solution in Creative category for [old] Say Hi by RubenGuerrero
"use strict";
var sayHi = (name, age) => `Hi. My name is ${name} and I'm ${age} years old`
var assert = require('assert');
if (!global.is_checking) {
assert.equal(sayHi("Alex", 32), "Hi. My name is Alex and I'm 32 years old")
assert.equal(sayHi("Frank", 68), "Hi. My name is Frank and I'm 68 years old")
console.log("Coding complete? Click 'Check' to review your tests and earn cool rewards!");
}
July 27, 2018