P
P
Pavel2018-04-04 20:44:47
JavaScript
Pavel, 2018-04-04 20:44:47

Which array method in JavaScript to use to style its elements?

let week = ['Monday','Tuesday','Wednesday', 'Thursday', 'Friday', 'Saterday', 'Sunday'];
document.write('Первый день: ' +week[0],
      '<br/>Второй день: ' +week[1],
      '<br/>Третий день: ' +week[2],
      '<br/>Четверый день: ' +week[3],
      '<br/>Пятый день: ' +week[4],
      '<br/>Шестой день: ' +week[5],
      '<br/>Седьмой день: ' +week[6]);

how to style the 5th and 6th element of an array?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
twobomb, 2018-04-04
@KlinDev

Can it be like this

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question