text: 'use strict';
  
  const tagged = (pref, str) => `[${pref}] ${str}`;
  
  // Define function tagDate that prepends current date to the string.
  // E.g. tagDate('My String') === '[2019-11-14] My String'
  // Use function tagged to implement tagDate.
  
  const tagDate = (str) => {
    const date = new Date();
    const day = date.getDate();
    const month = date.getMonth() + 1;
    const year = date.getFullYear();
    const data = `${year}-0${month}-0${day}`;
    return tagged(data, str);
  };
  module.exports = { tagDate };
  