新手请求指教 关于截取指定数目的
刚学习JS。遇到个小问题 问题如下 各位大虾请帮忙解决下elba, trace, bears, caster, bread, bale, beast, able, abets, baste, crate, recast, cater, saber, recta, caters, debra, reacts, caret, bates, beats, bela, debar, bared, crates, baser, braes, traces, beard, abel, react, bares
以上英文中截取长度为6的词语 要输出结果
比如结果是:caster caters crates reacts recast traces
似乎很简单 但小弟找不出长度的命令