S
S
sorry_i_noob2018-10-25 19:52:53
JavaScript
sorry_i_noob, 2018-10-25 19:52:53

JSON - is there a difference between {'num': 1} and {num: 1}? What is the best way to write?

Is there a difference and what is the best way to write? Why come up with two identical methods?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2018-10-25
@sorry_i_noob

There is no difference - both options are incorrect, there are no such JSONs.
Of course, what you really meant was something else, but... learn to ask questions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question