M
M
mars13112019-05-11 01:03:50
JavaScript
mars1311, 2019-05-11 01:03:50

Is it possible to store the value of an object as an object?

Is it correct to store the following object structure:

let first_obg = {
  name: name,
  password: password,
  comment: comment_obg
}

where
comment_obg = {
  author: author,
  text: text
}

That is, an object within an object? Is this the right way to store information?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexey Yarkov, 2019-05-11
@mars1311

Yes, you can store it that way. I don't understand your doubt.

M
Mary Solar, 2017-04-23
@deasmont

Create a parent block around which there will be several children:

<div class="content_wrap">
    <div class="content_box">
         <i></i>
         <span>Признание</span>
     </div>
<div class="content_box">
         <i></i>
         <span>Отношение</span>
     </div>
</div>
<div class="content_box">
         <i></i>
         <span>Самосовершенствование</span>
</div>

etc.
Parent - position: relative
Child - position: absolute and rotate them and rearrange them as you need
Inside the children you have an icon and text. Make the insides block elements, align to the center and they will stand where they need to

L
lem_prod, 2017-04-23
@lem_prod

if, apart from the "pass the test" button, everything else is not clickable, then just insert an image and don't fool yourself, otherwise positon: absolute; and expose...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question