let stringToHTML = (el = 'div', attr = [], template = '') =>
`<${el} ${attr.join(' ')}>${template}</${el}>`,
element = 'a',
content = "https://www.codewars.com"
attributes = [`href='${content}'`, "class='link'"];
stringToHTML(element, attributes, content);
// => "<a href='https://www.codewars.com' class='link'>https://www.codewars.com</a>"
// TODO: Replace examples and use TDD development by writing your own tests
// These are some of the methods available:
// Test.expect(boolean, [optional] message)
// Test.assertEquals(actual, expected, [optional] message)
// Test.assertSimilar(actual, expected, [optional] message)
// Test.assertNotEquals(actual, expected, [optional] message)
// You can also use Chai (http://chaijs.com/)
// var expect = require("chai").expect;
// var assert = require("chai").assert;
// require("chai").should();
describe("Solution", function(){
it("should test for something", function(){
Test.assertEquals("actual", "expected");
});
});