So James, do you think we should go over the differences between
bracket notation, dot notation and object literal notation?
>> Not really.
I think that conversation would make this class a lot longer.
Let's put a link in the instructor's notes to give students more information.
Good news is, they're pretty similar.
>> Yeah. That's fair.
Okay. So we're about to get into control flow in JavaScript.
But, before we do, let's go ahead and finish all of our objects.
The work object and projects objects needed to be created.
And let's go ahead and finish up the biography and education objects.
While we're at it, let's go ahead and
clean out resumeBuilder.js too, so that way, it only contains the four objects.
You might have some code in resumeBuilder.js from previous quizzes.
If you want to keep it, that's totally cool.
But you should comment it out with two slashes.
These two slashes at
the beginning of any line will comment out the rest of the line.
Or, if you don't want to comment out your code, you can just simply cut and
paste all of it into a different file.
>> That's a good idea.
Let's start the next lesson with a clean file,
with just our biographical objects.
Click this box once you've created your bio, work, projects and
education objects, and
either have cleared out or commented out, all of your previous code.
جيمس، هل تظن أنه يجب أن نراجع الفروق
بين علامة القوس والتدوين المنقط وتدوين أحرف الكائن؟
.>> ليس بالضرورة
.أظن أن هذه المحادثة ستجعل هذا الصف أطول بكثير
.لنضع رابطًا في ملاحظات المدرب لإعطاء الطلاب المزيد من المعلومات
.الخبر الجيد أنها متشابهة للغاية
.>> نعم. هذا جيد
.Okay. نحن على وشك التعمق في تدفق عناصر التحكم في JavaScript
.ولكن قبل ذلك، لننهِ كل أهدافنا
.يجب إنشاء كائن work وكائنات المشروعات
.ولننهِ كائنات السيرة الذاتية والتعلم
،وبينما نقوم بذلك
.لننظف resumeBuilder.js أيضًا، ليحتوي على الكائنات الأربع فقط
.ربما يكون لديكم بعض التعليمات البرمجية في resumeBuilder.js من اختبارات سابقة
.إذا أردتم الاحتفاظ بها، لا توجد مشكلة
.ولكن عليكم وضع شرطتين مائلتين عليها
ستقوم هاتان الشرطتان المائلتان
.في بداية أي سطر باستثناء باقي السطر
أو، إذا لم تريدوا استثناء التعليمات البرمجية، يمكنكم قصها
.ولصقها كلها في ملف مختلف
.>> هذه فكرة جيدة
،لنبدأ الدرس التالي بملف نظيف
.بكائنات السيرة الذاتية فقط
انقروا هذا المربع بمجرد إنشاء كائنات سيرتكم الذاتية وwork والمشروعات
والتعليم
.أو قوموا بمسح كل التعليمات البرمجية السابقة أو استثنائها
제임스, 대괄호 표기법, 점 표기법, 객체 리터럴 표기법의
차이를 짚고 넘어가야 할까요?
>>아니요
강의가 너무 길어질 것 같아요
instructor’s note에 링크를 걸어두겠습니다
희소식은 3가지가 꽤 비슷하다는 것이죠
>>맞아요
자바스크립트의 제어 흐름에 대해 알아보려고 했는데요
일단 객체를 끝냅시다
work 객체와 projects 객체를 만들어야 해요
bio 객체와 education 객체도 마무리합시다
resumeBuilder.js에 4개의 객체만 남도록
정리할거예요
resumeBuilder.js에 예전 퀴즈에서
작성한 코드가 있을텐데요
남겨두셔도 됩니다
하지만 2개의 슬래시(//)로 주석 처리해야 해요
2개의 슬래시를 문장 앞에 써주면
뒷 문장 전체가 주석 처리될 거예요
코드를 주석 처리하고 싶지 않으면
잘라내어 다른 파일에 옮겨두세요
>>좋은 생각이네요
bio 객체만 남은 깨끗한 파일로
다음 강의를 시작해보도록 하죠
bio, work, projects 그리고 education 객체를 만들고
전에 있던 코드를 지우거나 주석 처리한 후
박스를 클릭해주세요
James, você acha que devemos
examinar as diferenças entre
notação de colchete,
de ponto e de objeto literal?
Não exatamente.
Acho que essa conversa deixaria
a aula muito mais longa.
Vamos colocar um link nas Notas do instrutor
para dar mais informações aos alunos.
A boa notícia é que elas são muito parecidas.
Pois é. Isso é bom.
Certo. Estamos prestes a entrar no fluxo
de controle no JavaScript.
Mas antes, vamos terminar
todos os objetos.
O objeto work e os objetos projects
precisam ser criados.
E vamos terminar também os objetos
biography e education.
Enquanto isso, vamos limpar
resumeBuilder.js também, para que
contenha
só os quatro objetos.
Talvez você tenha códigos em
resumeBuilder.js de testes anteriores.
Se você quiser mantê-lo,
tudo bem.
Mas é preciso comentá-lo com
duas barras.
Essas duas barras
no início de qualquer linha vão
comentar o restante dela.
Ou, se não quiser comentar
o código, você poderá
simplesmente recortar e colar tudo
em outro arquivo.
Boa ideia.
Vamos começar a próxima
aula com um arquivo limpo,
apenas com nossos objetos biográficos.
Clique nesta caixa depois de criar seus
objetos bio, work, projects
e education,
e depois de limpar ou
comentar todo o
código anterior.
James 你认为我们应该比较一下
中括号操作符、点操作符和对象字面量的差异吗?
并不需要
因为那样会让这堂课变得很长
同学们可以通过讲师注释中的链接来了解更多信息
好消息是 它们都很简单
这样才好
好的 那我们接下来就将进入 JavaScript 的控制流课程
在那之前 我们来完成这堂课的所有任务
创建 工作信息对象和 项目经验对象
我们继续往前 完成档案信息和教育信息
完成这个之后 我们再往前
删除 resumeBuilder.js 这样的话 一共就只有4个对象了
或许你的 resumeBuilder.js 文件中还有一些之前小测试的代码
如果你想保存它们 那最好不过了
但你应该用双斜线注释它们
如果双斜线在
某一行的开头 它将注释整行
或者要是你不想注释它们的话 你也可以把它们剪切
粘贴到其他的文件之中
那真是个好主意
让我们以干净的文件开始下堂课
仅仅保留我们档案信息对象
当你完成创建个人资料、工作、项目经验和
教育的对象
并将之前的代码注释或删除后 勾选下框